Home
last modified time | relevance | path

Searched refs:DefaultOnly (Results 1 – 19 of 19) sorted by relevance

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/deque/deque.cons/
Dsize.pass.cpp28 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/
DDefaultOnly.h15 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/
Demplace.pass.cpp28 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 …]
Demplace_hint.pass.cpp28 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/
Dconstruct_size.pass.cpp65 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/
Demplace_hint.pass.cpp28 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 …]
Demplace.pass.cpp29 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/
Dalloc.pass.cpp35 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()
Ddefault.pass.cpp43 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/
Demplace.pass.cpp28 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()
Demplace_hint.pass.cpp28 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/
Demplace_hint.pass.cpp28 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()
Demplace.pass.cpp28 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/
Dresize_size.pass.cpp38 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/
Ddefault.pass.cpp27 std::list<DefaultOnly> l; in main()
43 std::list<DefaultOnly, min_allocator<DefaultOnly>> l; in main()
Dsize_type.pass.cpp78 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/
Dsize.pass.cpp35 typedef DefaultOnly T; in main()
50 typedef DefaultOnly T; in main()
Dsize.fail.cpp22 typedef DefaultOnly T; in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/forwardlist/forwardlist.modifiers/
Dresize_size.pass.cpp23 typedef DefaultOnly T; in main()
69 typedef DefaultOnly T; in main()