Home | History | Annotate | Download | only in default.allocator

Lines Matching full:allocator

15 // class allocator
26 // template <class U> struct rebind {typedef allocator<U> other;};
36 static_assert((std::is_same<std::allocator<char>::size_type, std::size_t>::value), "");
37 static_assert((std::is_same<std::allocator<char>::difference_type, std::ptrdiff_t>::value), "");
38 static_assert((std::is_same<std::allocator<char>::pointer, char*>::value), "");
39 static_assert((std::is_same<std::allocator<char>::const_pointer, const char*>::value), "");
40 static_assert((std::is_same<std::allocator<char>::value_type, char>::value), "");
41 static_assert((std::is_same<std::allocator<char>::reference, char&>::value), "");
42 static_assert((std::is_same<std::allocator<char>::const_reference, const char&>::value), "");
43 static_assert((std::is_same<std::allocator<char>::rebind<int>::other,
44 std::allocator<int> >::value), "");
45 std::allocator<char> a;
46 std::allocator<char> a2 = a;
48 std::allocator<int> a3 = a2;