diff options
Diffstat (limited to 'contrib/llvm-project/libcxx/include/__random/discard_block_engine.h')
| -rw-r--r-- | contrib/llvm-project/libcxx/include/__random/discard_block_engine.h | 45 |
1 files changed, 20 insertions, 25 deletions
diff --git a/contrib/llvm-project/libcxx/include/__random/discard_block_engine.h b/contrib/llvm-project/libcxx/include/__random/discard_block_engine.h index 7bdcb6555cd5..8ce5a1cf2cb2 100644 --- a/contrib/llvm-project/libcxx/include/__random/discard_block_engine.h +++ b/contrib/llvm-project/libcxx/include/__random/discard_block_engine.h @@ -54,50 +54,45 @@ public: static _LIBCPP_CONSTEXPR const result_type _Max = _Engine::max(); #endif - _LIBCPP_INLINE_VISIBILITY + _LIBCPP_HIDE_FROM_ABI static _LIBCPP_CONSTEXPR result_type min() { return _Engine::min(); } - _LIBCPP_INLINE_VISIBILITY + _LIBCPP_HIDE_FROM_ABI static _LIBCPP_CONSTEXPR result_type max() { return _Engine::max(); } // constructors and seeding functions - _LIBCPP_INLINE_VISIBILITY + _LIBCPP_HIDE_FROM_ABI discard_block_engine() : __n_(0) {} - _LIBCPP_INLINE_VISIBILITY + _LIBCPP_HIDE_FROM_ABI explicit discard_block_engine(const _Engine& __e) : __e_(__e), __n_(0) {} #ifndef _LIBCPP_CXX03_LANG - _LIBCPP_INLINE_VISIBILITY + _LIBCPP_HIDE_FROM_ABI explicit discard_block_engine(_Engine&& __e) - : __e_(_VSTD::move(__e)), __n_(0) {} + : __e_(std::move(__e)), __n_(0) {} #endif // _LIBCPP_CXX03_LANG - _LIBCPP_INLINE_VISIBILITY + _LIBCPP_HIDE_FROM_ABI explicit discard_block_engine(result_type __sd) : __e_(__sd), __n_(0) {} - template<class _Sseq> - _LIBCPP_INLINE_VISIBILITY - explicit discard_block_engine(_Sseq& __q, - typename enable_if<__is_seed_sequence<_Sseq, discard_block_engine>::value && - !is_convertible<_Sseq, _Engine>::value>::type* = 0) + template<class _Sseq, __enable_if_t<__is_seed_sequence<_Sseq, discard_block_engine>::value && + !is_convertible<_Sseq, _Engine>::value, int> = 0> + _LIBCPP_HIDE_FROM_ABI + explicit discard_block_engine(_Sseq& __q) : __e_(__q), __n_(0) {} - _LIBCPP_INLINE_VISIBILITY + _LIBCPP_HIDE_FROM_ABI void seed() {__e_.seed(); __n_ = 0;} - _LIBCPP_INLINE_VISIBILITY + _LIBCPP_HIDE_FROM_ABI void seed(result_type __sd) {__e_.seed(__sd); __n_ = 0;} - template<class _Sseq> - _LIBCPP_INLINE_VISIBILITY - typename enable_if - < - __is_seed_sequence<_Sseq, discard_block_engine>::value, - void - >::type + template<class _Sseq, __enable_if_t<__is_seed_sequence<_Sseq, discard_block_engine>::value, int> = 0> + _LIBCPP_HIDE_FROM_ABI + void seed(_Sseq& __q) {__e_.seed(__q); __n_ = 0;} // generating functions _LIBCPP_HIDE_FROM_ABI result_type operator()(); - _LIBCPP_INLINE_VISIBILITY + _LIBCPP_HIDE_FROM_ABI void discard(unsigned long long __z) {for (; __z; --__z) operator()();} // property functions - _LIBCPP_INLINE_VISIBILITY + _LIBCPP_HIDE_FROM_ABI const _Engine& base() const _NOEXCEPT {return __e_;} template<class _Eng, size_t _Pp, size_t _Rp> @@ -149,7 +144,7 @@ discard_block_engine<_Engine, __p, __r>::operator()() } template<class _Eng, size_t _Pp, size_t _Rp> -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_HIDE_FROM_ABI bool operator==(const discard_block_engine<_Eng, _Pp, _Rp>& __x, const discard_block_engine<_Eng, _Pp, _Rp>& __y) @@ -158,7 +153,7 @@ operator==(const discard_block_engine<_Eng, _Pp, _Rp>& __x, } template<class _Eng, size_t _Pp, size_t _Rp> -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_HIDE_FROM_ABI bool operator!=(const discard_block_engine<_Eng, _Pp, _Rp>& __x, const discard_block_engine<_Eng, _Pp, _Rp>& __y) |
