noexcept applied to <random>.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@160579 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -217,7 +217,7 @@ public:
|
|||||||
void discard(unsigned long long z);
|
void discard(unsigned long long z);
|
||||||
|
|
||||||
// property functions
|
// property functions
|
||||||
const Engine& base() const;
|
const Engine& base() const noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class Engine, size_t p, size_t r>
|
template<class Engine, size_t p, size_t r>
|
||||||
@@ -269,7 +269,7 @@ public:
|
|||||||
result_type operator()(); void discard(unsigned long long z);
|
result_type operator()(); void discard(unsigned long long z);
|
||||||
|
|
||||||
// property functions
|
// property functions
|
||||||
const Engine& base() const;
|
const Engine& base() const noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class Engine, size_t w, class UIntType>
|
template<class Engine, size_t w, class UIntType>
|
||||||
@@ -323,7 +323,7 @@ public:
|
|||||||
void discard(unsigned long long z);
|
void discard(unsigned long long z);
|
||||||
|
|
||||||
// property functions
|
// property functions
|
||||||
const Engine& base() const;
|
const Engine& base() const noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class Engine, size_t k>
|
template<class Engine, size_t k>
|
||||||
@@ -392,7 +392,7 @@ public:
|
|||||||
result_type operator()();
|
result_type operator()();
|
||||||
|
|
||||||
// property functions
|
// property functions
|
||||||
double entropy() const;
|
double entropy() const noexcept;
|
||||||
|
|
||||||
// no copy functions
|
// no copy functions
|
||||||
random_device(const random_device& ) = delete;
|
random_device(const random_device& ) = delete;
|
||||||
@@ -2788,7 +2788,7 @@ public:
|
|||||||
|
|
||||||
// property functions
|
// property functions
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
const _Engine& base() const {return __e_;}
|
const _Engine& base() const _NOEXCEPT {return __e_;}
|
||||||
|
|
||||||
template<class _Eng, size_t _Pp, size_t _Rp>
|
template<class _Eng, size_t _Pp, size_t _Rp>
|
||||||
friend
|
friend
|
||||||
@@ -2993,7 +2993,7 @@ public:
|
|||||||
|
|
||||||
// property functions
|
// property functions
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
const _Engine& base() const {return __e_;}
|
const _Engine& base() const _NOEXCEPT {return __e_;}
|
||||||
|
|
||||||
template<class _Eng, size_t _Wp, class _UI>
|
template<class _Eng, size_t _Wp, class _UI>
|
||||||
friend
|
friend
|
||||||
@@ -3222,7 +3222,7 @@ public:
|
|||||||
|
|
||||||
// property functions
|
// property functions
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
const _Engine& base() const {return __e_;}
|
const _Engine& base() const _NOEXCEPT {return __e_;}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
template<class _Eng, size_t _Kp>
|
template<class _Eng, size_t _Kp>
|
||||||
@@ -3399,7 +3399,7 @@ public:
|
|||||||
result_type operator()();
|
result_type operator()();
|
||||||
|
|
||||||
// property functions
|
// property functions
|
||||||
double entropy() const;
|
double entropy() const _NOEXCEPT;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// no copy functions
|
// no copy functions
|
||||||
|
@@ -40,7 +40,7 @@ random_device::operator()()
|
|||||||
}
|
}
|
||||||
|
|
||||||
double
|
double
|
||||||
random_device::entropy() const
|
random_device::entropy() const _NOEXCEPT
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user