1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: no-localization
13 // template <class UIntType, UIntType a, UIntType c, UIntType m>
14 // class linear_congruential_engine;
16 // template <class charT, class traits,
17 // class UIntType, UIntType a, UIntType c, UIntType m>
18 // basic_ostream<charT, traits>&
19 // operator<<(basic_ostream<charT, traits>& os,
20 // const linear_congruential_engine<UIntType, a, c, m>& x);
22 // template <class charT, class traits,
23 // class UIntType, UIntType a, UIntType c, UIntType m>
24 // basic_istream<charT, traits>&
25 // operator>>(basic_istream<charT, traits>& is,
26 // linear_congruential_engine<UIntType, a, c, m>& x);
32 #include "test_macros.h"
37 typedef std::linear_congruential_engine
<unsigned, 48271, 0, 2147483647> E
;
40 std::ostringstream os
;
42 std::istringstream
is(os
.str());