/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/deque/deque.cons/ |
D | size.pass.cpp | 28 assert(DefaultOnly::count == 0); in test2() 31 assert(DefaultOnly::count == n); in test2() 39 assert(DefaultOnly::count == 0); in test2() 49 assert(DefaultOnly::count == 0); in test1() 52 assert(DefaultOnly::count == n); in test1() 60 assert(DefaultOnly::count == 0); in test1() 88 test<DefaultOnly, std::allocator<DefaultOnly> >(0); in main() 89 test<DefaultOnly, std::allocator<DefaultOnly> >(1); in main() 90 test<DefaultOnly, std::allocator<DefaultOnly> >(10); in main() 91 test<DefaultOnly, std::allocator<DefaultOnly> >(1023); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support/ |
D | DefaultOnly.h | 15 class DefaultOnly 19 DefaultOnly(const DefaultOnly&); 20 DefaultOnly& operator=(const DefaultOnly&); 24 DefaultOnly() : data_(-1) {++count;} in DefaultOnly() function 25 ~DefaultOnly() {data_ = 0; --count;} in ~DefaultOnly() 27 friend bool operator==(const DefaultOnly& x, const DefaultOnly& y) 29 friend bool operator< (const DefaultOnly& x, const DefaultOnly& y) 33 int DefaultOnly::count = 0;
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multimap/multimap.modifiers/ |
D | emplace.pass.cpp | 28 typedef std::multimap<int, DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 36 assert(m.begin()->second == DefaultOnly()); in main() 37 assert(DefaultOnly::count == 1); in main() 43 assert(next(m.begin())->second == DefaultOnly()); in main() 44 assert(DefaultOnly::count == 2); in main() 50 assert(next(m.begin(), 2)->second == DefaultOnly()); in main() 51 assert(DefaultOnly::count == 3); in main() 53 assert(DefaultOnly::count == 0); in main() 89 …typedef std::multimap<int, DefaultOnly, std::less<int>, min_allocator<std::pair<const int, Default… in main() [all …]
|
D | emplace_hint.pass.cpp | 28 typedef std::multimap<int, DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 36 assert(m.begin()->second == DefaultOnly()); in main() 37 assert(DefaultOnly::count == 1); in main() 44 assert(next(m.begin())->second == DefaultOnly()); in main() 45 assert(DefaultOnly::count == 2); in main() 52 assert(next(m.begin(), 2)->second == DefaultOnly()); in main() 53 assert(DefaultOnly::count == 3); in main() 55 assert(DefaultOnly::count == 0); in main() 94 …typedef std::multimap<int, DefaultOnly, std::less<int>, min_allocator<std::pair<const int, Default… in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.cons/ |
D | construct_size.pass.cpp | 65 test<std::vector<DefaultOnly> >(500); in main() 66 assert(DefaultOnly::count == 0); in main() 69 test<std::vector<DefaultOnly, min_allocator<DefaultOnly>> >(500); in main() 70 …test2<std::vector<DefaultOnly, test_allocator<DefaultOnly>> >( 100, test_allocator<DefaultOnly>(23… in main() 71 assert(DefaultOnly::count == 0); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/map.modifiers/ |
D | emplace_hint.pass.cpp | 28 typedef std::map<int, DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 36 assert(m.begin()->second == DefaultOnly()); in main() 37 assert(DefaultOnly::count == 1); in main() 44 assert(next(m.begin())->second == DefaultOnly()); in main() 45 assert(DefaultOnly::count == 2); in main() 52 assert(next(m.begin())->second == DefaultOnly()); in main() 53 assert(DefaultOnly::count == 2); in main() 55 assert(DefaultOnly::count == 0); in main() 94 …typedef std::map<int, DefaultOnly, std::less<int>, min_allocator<std::pair<const int, DefaultOnly>… in main() [all …]
|
D | emplace.pass.cpp | 29 typedef std::map<int, DefaultOnly> M; in main() 32 assert(DefaultOnly::count == 0); in main() 38 assert(m.begin()->second == DefaultOnly()); in main() 39 assert(DefaultOnly::count == 1); in main() 46 assert(next(m.begin())->second == DefaultOnly()); in main() 47 assert(DefaultOnly::count == 2); in main() 54 assert(next(m.begin())->second == DefaultOnly()); in main() 55 assert(DefaultOnly::count == 2); in main() 57 assert(DefaultOnly::count == 0); in main() 97 …typedef std::map<int, DefaultOnly, std::less<int>, min_allocator<std::pair<const int, DefaultOnly>… in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | alloc.pass.cpp | 35 std::tuple<DefaultOnly> t(std::allocator_arg, A1<int>()); in main() 36 assert(std::get<0>(t) == DefaultOnly()); in main() 52 std::tuple<DefaultOnly, alloc_first> t(std::allocator_arg, A1<int>(5)); in main() 53 assert(std::get<0>(t) == DefaultOnly()); in main() 60 std::tuple<DefaultOnly, alloc_first, alloc_last> t(std::allocator_arg, in main() 62 assert(std::get<0>(t) == DefaultOnly()); in main() 71 std::tuple<DefaultOnly, alloc_first, alloc_last> t(std::allocator_arg, in main() 73 assert(std::get<0>(t) == DefaultOnly()); in main()
|
D | default.pass.cpp | 43 std::tuple<int, char*, std::string, DefaultOnly> t; in main() 47 assert(std::get<3>(t) == DefaultOnly()); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multiset/ |
D | emplace.pass.cpp | 28 typedef std::multiset<DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 35 assert(*m.begin() == DefaultOnly()); in main() 36 assert(DefaultOnly::count == 1); in main() 41 assert(*m.begin() == DefaultOnly()); in main() 42 assert(DefaultOnly::count == 2); in main() 44 assert(DefaultOnly::count == 0); in main()
|
D | emplace_hint.pass.cpp | 28 typedef std::multiset<DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 35 assert(*m.begin() == DefaultOnly()); in main() 36 assert(DefaultOnly::count == 1); in main() 41 assert(*m.begin() == DefaultOnly()); in main() 42 assert(DefaultOnly::count == 2); in main() 44 assert(DefaultOnly::count == 0); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/set/ |
D | emplace_hint.pass.cpp | 28 typedef std::set<DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 35 assert(*m.begin() == DefaultOnly()); in main() 36 assert(DefaultOnly::count == 1); in main() 41 assert(*m.begin() == DefaultOnly()); in main() 42 assert(DefaultOnly::count == 1); in main() 44 assert(DefaultOnly::count == 0); in main()
|
D | emplace.pass.cpp | 28 typedef std::set<DefaultOnly> M; in main() 31 assert(DefaultOnly::count == 0); in main() 36 assert(*m.begin() == DefaultOnly()); in main() 37 assert(DefaultOnly::count == 1); in main() 43 assert(*m.begin() == DefaultOnly()); in main() 44 assert(DefaultOnly::count == 1); in main() 46 assert(DefaultOnly::count == 0); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/list/list.capacity/ |
D | resize_size.pass.cpp | 38 std::list<DefaultOnly> l(10); in main() 44 std::list<DefaultOnly> l(10); in main() 68 std::list<DefaultOnly, min_allocator<DefaultOnly>> l(10); in main() 74 std::list<DefaultOnly, min_allocator<DefaultOnly>> l(10); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/list/list.cons/ |
D | default.pass.cpp | 27 std::list<DefaultOnly> l; in main() 43 std::list<DefaultOnly, min_allocator<DefaultOnly>> l; in main()
|
D | size_type.pass.cpp | 78 std::list<DefaultOnly> l(3); in main() 97 std::list<DefaultOnly, min_allocator<DefaultOnly>> l(3); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/forwardlist/forwardlist.cons/ |
D | size.pass.cpp | 35 typedef DefaultOnly T; in main() 50 typedef DefaultOnly T; in main()
|
D | size.fail.cpp | 22 typedef DefaultOnly T; in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/forwardlist/forwardlist.modifiers/ |
D | resize_size.pass.cpp | 23 typedef DefaultOnly T; in main() 69 typedef DefaultOnly T; in main()
|