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

Lines Matching refs:allocator

15 // class allocator
27 // template <class U> struct rebind {typedef allocator<U> other;};
39 static_assert((std::is_same<std::allocator<char>::size_type, std::size_t>::value), "");
40 static_assert((std::is_same<std::allocator<char>::difference_type, std::ptrdiff_t>::value), "");
41 static_assert((std::is_same<std::allocator<char>::pointer, char*>::value), "");
42 static_assert((std::is_same<std::allocator<char>::const_pointer, const char*>::value), "");
43 static_assert((std::is_same<std::allocator<char>::value_type, char>::value), "");
44 static_assert((std::is_same<std::allocator<char>::reference, char&>::value), "");
45 static_assert((std::is_same<std::allocator<char>::const_reference, const char&>::value), "");
46 static_assert((std::is_same<std::allocator<char>::rebind<int>::other,
47 std::allocator<int> >::value), "");
49 static_assert((std::is_same<std::allocator< char>::is_always_equal, std::true_type>::value), "");
50 LIBCPP_STATIC_ASSERT((std::is_same<std::allocator<const char>::is_always_equal, std::true_type>::value), "");
52 std::allocator<char> a;
53 std::allocator<char> a2 = a;
55 std::allocator<int> a3 = a2;