HomeSort by relevance Sort by last modified time
    Searched refs:allocator_traits (Results 1 - 25 of 79) sorted by null

1 2 3 4

  /external/libcxx/test/std/utilities/memory/allocator.traits/
rebind_traits.pass.cpp 13 // struct allocator_traits
15 // template <class T> using rebind_traits = allocator_traits<rebind_alloc<T>>;
69 static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_traits<double>, std::allocator_traits<ReboundA<double> > >::value), "");
70 static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_traits<double>, std::allocator_traits<ReboundB<double, char> > >::value), "");
71 static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_traits<double>, std::allocator_traits<C<double> > >::value), "");
72 static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_traits<double>, std::allocator_traits<D<double, char> > >::value), "")
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/memory/allocator.traits/
rebind_traits.pass.cpp 13 // struct allocator_traits
15 // template <class T> using rebind_traits = allocator_traits<rebind_alloc<T>>;
69 static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_traits<double>, std::allocator_traits<ReboundA<double> > >::value), "");
70 static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_traits<double>, std::allocator_traits<ReboundB<double, char> > >::value), "");
71 static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_traits<double>, std::allocator_traits<C<double> > >::value), "");
72 static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_traits<double>, std::allocator_traits<D<double, char> > >::value), "")
    [all...]
  /external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.types/
is_always_equal.pass.cpp 29 std::allocator_traits<A1<int>>::is_always_equal, std::false_type>::value
33 std::allocator_traits<min_allocator<int>>::is_always_equal, std::true_type>::value
40 std::allocator_traits<A1<int>>::is_always_equal
47 std::allocator_traits<min_allocator<int>>::is_always_equal
53 ( std::allocator_traits<A1<int>>::is_always_equal::value &&
54 std::allocator_traits<A2<int>>::is_always_equal::value)
60 ( std::allocator_traits<A1<int>>::is_always_equal::value &&
61 std::allocator_traits<min_allocator<int>>::is_always_equal::value)
68 ( std::allocator_traits<A1<int>>::is_always_equal::value &&
69 std::allocator_traits<A2<int>>::is_always_equal::value &
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/allocator.adaptor/allocator.adaptor.types/
is_always_equal.pass.cpp 29 std::allocator_traits<A1<int>>::is_always_equal, std::false_type>::value
33 std::allocator_traits<min_allocator<int>>::is_always_equal, std::true_type>::value
40 std::allocator_traits<A1<int>>::is_always_equal
47 std::allocator_traits<min_allocator<int>>::is_always_equal
53 ( std::allocator_traits<A1<int>>::is_always_equal::value &&
54 std::allocator_traits<A2<int>>::is_always_equal::value)
60 ( std::allocator_traits<A1<int>>::is_always_equal::value &&
61 std::allocator_traits<min_allocator<int>>::is_always_equal::value)
68 ( std::allocator_traits<A1<int>>::is_always_equal::value &&
69 std::allocator_traits<A2<int>>::is_always_equal::value &
    [all...]
  /external/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.members/
max_size.pass.cpp 13 // struct allocator_traits
49 assert(std::allocator_traits<B<int> >::max_size(b) == 100);
53 assert(std::allocator_traits<B<int> >::max_size(b) == 100);
59 assert(std::allocator_traits<Alloc >::max_size(a) == 100);
64 assert(std::allocator_traits<A<int> >::max_size(a) ==
69 assert(std::allocator_traits<A<int> >::max_size(a) ==
74 static_assert(noexcept(std::allocator_traits<std::allocator<int>>::max_size(a)) == true, "");
select_on_container_copy_construction.pass.cpp 13 // struct allocator_traits
55 assert(std::allocator_traits<A<int> >::select_on_container_copy_construction(a).id == 0);
59 assert(std::allocator_traits<A<int> >::select_on_container_copy_construction(a).id == 0);
65 assert(std::allocator_traits<Alloc>::select_on_container_copy_construction(a).id == 0);
70 assert(std::allocator_traits<B<int> >::select_on_container_copy_construction(b).id == 100);
74 assert(std::allocator_traits<B<int> >::select_on_container_copy_construction(b).id == 100);
  /external/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.types/
is_always_equal.pass.cpp 13 // struct allocator_traits
45 static_assert((std::is_same<std::allocator_traits<A<char> >::is_always_equal, std::true_type>::value), "");
46 static_assert((std::is_same<std::allocator_traits<B<char> >::is_always_equal, std::true_type>::value), "");
47 static_assert((std::is_same<std::allocator_traits<C<char> >::is_always_equal, std::false_type>::value), "");
49 static_assert((std::is_same<std::allocator_traits<A<const char> >::is_always_equal, std::true_type>::value), "");
50 static_assert((std::is_same<std::allocator_traits<B<const char> >::is_always_equal, std::true_type>::value), "");
51 static_assert((std::is_same<std::allocator_traits<C<const char> >::is_always_equal, std::false_type>::value), "");
pointer.pass.cpp 13 // struct allocator_traits
49 static_assert((std::is_same<std::allocator_traits<A<char> >::pointer, Ptr<char> >::value), "");
50 static_assert((std::is_same<std::allocator_traits<B<char> >::pointer, char*>::value), "");
52 static_assert((std::is_same<std::allocator_traits<C<char> >::pointer, char*>::value), "");
propagate_on_container_copy_assignment.pass.cpp 13 // struct allocator_traits
49 static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_copy_assignment, std::true_type>::value), "");
50 static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_copy_assignment, std::false_type>::value), "");
52 static_assert((std::is_same<std::allocator_traits<C<char> >::propagate_on_container_copy_assignment, std::false_type>::value), "");
propagate_on_container_move_assignment.pass.cpp 13 // struct allocator_traits
50 static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_move_assignment, std::true_type>::value), "");
51 static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_move_assignment, std::false_type>::value), "");
53 static_assert((std::is_same<std::allocator_traits<C<char> >::propagate_on_container_move_assignment, std::false_type>::value), "");
propagate_on_container_swap.pass.cpp 13 // struct allocator_traits
48 static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_swap, std::true_type>::value), "");
49 static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_swap, std::false_type>::value), "");
51 static_assert((std::is_same<std::allocator_traits<C<char> >::propagate_on_container_swap, std::false_type>::value), "");
rebind_alloc.pass.cpp 13 // struct allocator_traits
87 static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_alloc<double>, ReboundA<double> >::value), "");
88 static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_alloc<double>, ReboundB<double, char> >::value), "");
89 static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_alloc<double>, C<double> >::value), "");
90 static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_alloc<double>, D<double, char> >::value), "");
91 static_assert((std::is_same<std::allocator_traits<E<char> >::rebind_alloc<double>, E<double> >::value), "");
92 static_assert((std::is_same<std::allocator_traits<F<char> >::rebind_alloc<double>, F<double> >::value), "");
93 static_assert((std::is_same<std::allocator_traits<G<char> >::rebind_alloc<double>, G<double> >::value), "");
95 static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_alloc<double>::other, ReboundA<double> >::value), "");
96 static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_alloc<double>::other, ReboundB<double, char> >::value), "")
    [all...]
const_pointer.pass.cpp 13 // struct allocator_traits
61 static_assert((std::is_same<std::allocator_traits<A<char> >::const_pointer, Ptr<const char> >::value), "");
62 static_assert((std::is_same<std::allocator_traits<B<char> >::const_pointer, const char*>::value), "");
63 static_assert((std::is_same<std::allocator_traits<C<char> >::const_pointer, CPtr<const char> >::value), "");
65 static_assert((std::is_same<std::allocator_traits<D<char> >::const_pointer, const char*>::value), "");
const_void_pointer.pass.cpp 13 // struct allocator_traits
63 static_assert((std::is_same<std::allocator_traits<A<char> >::const_void_pointer, Ptr<const void> >::value), "");
64 static_assert((std::is_same<std::allocator_traits<B<char> >::const_void_pointer, const void*>::value), "");
65 static_assert((std::is_same<std::allocator_traits<C<char> >::const_void_pointer, CPtr<const void> >::value), "");
67 static_assert((std::is_same<std::allocator_traits<D<char> >::const_void_pointer, const void*>::value), "");
difference_type.pass.cpp 13 // struct allocator_traits
72 static_assert((std::is_same<std::allocator_traits<A<char> >::difference_type, short>::value), "");
73 static_assert((std::is_same<std::allocator_traits<B<char> >::difference_type, std::ptrdiff_t>::value), "");
74 static_assert((std::is_same<std::allocator_traits<C<char> >::difference_type, signed char>::value), "");
76 static_assert((std::is_same<std::allocator_traits<D<char> >::difference_type, std::ptrdiff_t>::value), "");
size_type.pass.cpp 13 // struct allocator_traits
68 static_assert((std::is_same<std::allocator_traits<A<char> >::size_type, unsigned short>::value), "");
69 static_assert((std::is_same<std::allocator_traits<B<char> >::size_type,
71 static_assert((std::is_same<std::allocator_traits<C<char> >::size_type,
74 static_assert((std::is_same<std::allocator_traits<D<char> >::size_type, unsigned short>::value), "");
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/memory/allocator.traits/allocator.traits.types/
is_always_equal.pass.cpp 13 // struct allocator_traits
45 static_assert((std::is_same<std::allocator_traits<A<char> >::is_always_equal, std::true_type>::value), "");
46 static_assert((std::is_same<std::allocator_traits<B<char> >::is_always_equal, std::true_type>::value), "");
47 static_assert((std::is_same<std::allocator_traits<C<char> >::is_always_equal, std::false_type>::value), "");
49 static_assert((std::is_same<std::allocator_traits<A<const char> >::is_always_equal, std::true_type>::value), "");
50 static_assert((std::is_same<std::allocator_traits<B<const char> >::is_always_equal, std::true_type>::value), "");
51 static_assert((std::is_same<std::allocator_traits<C<const char> >::is_always_equal, std::false_type>::value), "");
pointer.pass.cpp 13 // struct allocator_traits
49 static_assert((std::is_same<std::allocator_traits<A<char> >::pointer, Ptr<char> >::value), "");
50 static_assert((std::is_same<std::allocator_traits<B<char> >::pointer, char*>::value), "");
52 static_assert((std::is_same<std::allocator_traits<C<char> >::pointer, char*>::value), "");
propagate_on_container_copy_assignment.pass.cpp 13 // struct allocator_traits
49 static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_copy_assignment, std::true_type>::value), "");
50 static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_copy_assignment, std::false_type>::value), "");
52 static_assert((std::is_same<std::allocator_traits<C<char> >::propagate_on_container_copy_assignment, std::false_type>::value), "");
propagate_on_container_move_assignment.pass.cpp 13 // struct allocator_traits
50 static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_move_assignment, std::true_type>::value), "");
51 static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_move_assignment, std::false_type>::value), "");
53 static_assert((std::is_same<std::allocator_traits<C<char> >::propagate_on_container_move_assignment, std::false_type>::value), "");
propagate_on_container_swap.pass.cpp 13 // struct allocator_traits
48 static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_swap, std::true_type>::value), "");
49 static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_swap, std::false_type>::value), "");
51 static_assert((std::is_same<std::allocator_traits<C<char> >::propagate_on_container_swap, std::false_type>::value), "");
rebind_alloc.pass.cpp 13 // struct allocator_traits
87 static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_alloc<double>, ReboundA<double> >::value), "");
88 static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_alloc<double>, ReboundB<double, char> >::value), "");
89 static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_alloc<double>, C<double> >::value), "");
90 static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_alloc<double>, D<double, char> >::value), "");
91 static_assert((std::is_same<std::allocator_traits<E<char> >::rebind_alloc<double>, E<double> >::value), "");
92 static_assert((std::is_same<std::allocator_traits<F<char> >::rebind_alloc<double>, F<double> >::value), "");
93 static_assert((std::is_same<std::allocator_traits<G<char> >::rebind_alloc<double>, G<double> >::value), "");
95 static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_alloc<double>::other, ReboundA<double> >::value), "");
96 static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_alloc<double>::other, ReboundB<double, char> >::value), "")
    [all...]
  /external/clang/test/SemaCXX/
PR9902.cpp 17 struct allocator_traits struct
20 template <class T> using rebind_traits = allocator_traits<rebind_alloc<T>>;
28 allocator_traits<allocator<char>>::rebind_alloc<int> a;
PR9908.cpp 11 struct allocator_traits struct
16 template <class T> using rebind_traits = allocator_traits<rebind_alloc<T>>;
32 allocator_traits<A<char> >::rebind_traits<double> a;
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/memory/allocator.traits/allocator.traits.members/
max_size.pass.cpp 13 // struct allocator_traits
48 assert(std::allocator_traits<B<int> >::max_size(b) == 100);
52 assert(std::allocator_traits<B<int> >::max_size(b) == 100);
57 assert(std::allocator_traits<A<int> >::max_size(a) ==
62 assert(std::allocator_traits<A<int> >::max_size(a) ==
67 static_assert(noexcept(std::allocator_traits<std::allocator<int>>::max_size(a)) == true, "");

Completed in 220 milliseconds

1 2 3 4