diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2013-07-10 00:34:14 +0400 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2013-07-10 00:34:14 +0400 |
commit | 8e1cb5adb34272aaebf06ad6595813a731c59602 (patch) | |
tree | e48be37ab279189a034611b473d969e4d5eaf5d0 /libcxx/include/random | |
parent | 7278788ffe42497b8d88ec08b0e35ee4b63c1e7a (diff) |
move __save_flags from <random> to <ios> in preparation for reuse; no functionality change
llvm-svn: 185968
Diffstat (limited to 'libcxx/include/random')
-rw-r--r-- | libcxx/include/random | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/libcxx/include/random b/libcxx/include/random index 46cbc4bdc647..2e7a4854c198 100644 --- a/libcxx/include/random +++ b/libcxx/include/random @@ -1973,33 +1973,6 @@ linear_congruential_engine<_UIntType, __a, __c, __m>::__seed(_Sseq& __q, __x_ = __c == 0 && __s == 0 ? result_type(1) : __s; } -template <class _CharT, class _Traits> -class __save_flags -{ - typedef basic_ios<_CharT, _Traits> __stream_type; - typedef typename __stream_type::fmtflags fmtflags; - - __stream_type& __stream_; - fmtflags __fmtflags_; - _CharT __fill_; - - __save_flags(const __save_flags&); - __save_flags& operator=(const __save_flags&); -public: - _LIBCPP_INLINE_VISIBILITY - explicit __save_flags(__stream_type& __stream) - : __stream_(__stream), - __fmtflags_(__stream.flags()), - __fill_(__stream.fill()) - {} - _LIBCPP_INLINE_VISIBILITY - ~__save_flags() - { - __stream_.flags(__fmtflags_); - __stream_.fill(__fill_); - } -}; - template <class _CharT, class _Traits, class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m> inline _LIBCPP_INLINE_VISIBILITY |