Lines Matching refs:allocator
35 template <typename AllocT = std::allocator<nasty_char>>
49 …ypename CharT, typename TraitsT = std::char_traits<CharT>, typename AllocT = std::allocator<CharT>>
127 …ypename CharT, typename TraitsT = std::char_traits<CharT>, typename AllocT = std::allocator<CharT>>
131 const AllocT allocator; in test() local
135 StrBuf ss(CS("zmt"), std::ios_base::out | std::ios_base::in, allocator); in test()
137 assert(ss.get_allocator() == allocator); in test()
142 StrBuf ss(csv, std::ios_base::out | std::ios_base::in, allocator); in test()
144 assert(ss.get_allocator() == allocator); in test()
148 const std::basic_string<CharT, TraitsT, AllocT> cs = ST("zmt", allocator); in test()
149 StrBuf ss(cs, std::ios_base::out | std::ios_base::in, allocator); in test()
151 assert(ss.get_allocator() == allocator); in test()
156 StrBuf ss(sv, std::ios_base::out | std::ios_base::in, allocator); in test()
158 assert(ss.get_allocator() == allocator); in test()
166 test_sfinae<char, constexpr_char_traits<char>, std::allocator<char>>(); in main()
170 test<char, constexpr_char_traits<char>, std::allocator<char>>(); in main()
175 test_sfinae<wchar_t, constexpr_char_traits<wchar_t>, std::allocator<wchar_t>>(); in main()
179 test<wchar_t, constexpr_char_traits<wchar_t>, std::allocator<wchar_t>>(); in main()