/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/utilities/memory/specialized.algorithms/ |
H A D | counted.h | 15 struct Counted { struct 25 explicit Counted() { in Counted() argument 30 explicit Counted(int v) : value(v) { in Counted() function 35 ~Counted() { --current_objects; } in ~Counted() argument 43 Counted(const Counted& rhs) : value(rhs.value) { in Counted() function 49 Counted(Counted&& rhs) : value(rhs.value) { in Counted() function 65 friend void operator&(Counted) = delete; argument 79 int Counted::current_objects = 0; argument
|
/aosp_15_r20/external/libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.move/ |
H A D | uninitialized_move.pass.cpp | 24 struct Counted { struct 28 explicit Counted(int&& x) : value(x) { x = 0; ++count; ++constructed; } in Counted() argument 29 Counted(Counted const&) { assert(false); } in Counted() argument 30 ~Counted() { assert(count > 0); --count; } in ~Counted() argument 34 int Counted::count = 0; argument
|
H A D | uninitialized_move_n.pass.cpp | 24 struct Counted { struct 28 explicit Counted(int&& x) : value(x) { x = 0; ++count; ++constructed; } in Counted() function 29 Counted(Counted const&) { assert(false); } in Counted() argument 30 ~Counted() { assert(count > 0); --count; } in ~Counted() argument 34 int Counted::count = 0; argument
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/utilities/memory/specialized.algorithms/uninitialized.move/ |
H A D | uninitialized_move.pass.cpp | 24 struct Counted { struct 28 explicit Counted(int&& x) : value(x) { x = 0; ++count; ++constructed; } in Counted() argument 29 Counted(Counted const&) { assert(false); } in Counted() argument 30 ~Counted() { assert(count > 0); --count; } in ~Counted() argument 34 int Counted::count = 0; argument
|
H A D | uninitialized_move_n.pass.cpp | 24 struct Counted { struct 28 explicit Counted(int&& x) : value(x) { x = 0; ++count; ++constructed; } in Counted() function 29 Counted(Counted const&) { assert(false); } in Counted() argument 30 ~Counted() { assert(count > 0); --count; } in ~Counted() argument 34 int Counted::count = 0; argument
|
/aosp_15_r20/external/libcxx/test/std/utilities/memory/specialized.algorithms/specialized.destroy/ |
H A D | destroy.pass.cpp | 24 struct Counted { struct 27 Counted() { ++count; } in Counted() argument 28 Counted(Counted const&) { ++count; } in Counted() function 29 ~Counted() { --count; } in ~Counted() argument
|
H A D | destroy_n.pass.cpp | 24 struct Counted { struct 27 Counted() { ++count; } in Counted() argument 28 Counted(Counted const&) { ++count; } in Counted() function 29 ~Counted() { --count; } in ~Counted() argument
|
H A D | destroy_at.pass.cpp | 21 struct Counted { struct 24 Counted() { ++count; } in Counted() argument 25 Counted(Counted const&) { ++count; } in Counted() argument 26 ~Counted() { --count; } in ~Counted() argument
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/ |
H A D | uninitialized_default_construct_n.pass.cpp | 23 struct Counted { struct 27 explicit Counted() { ++count; ++constructed; } in Counted() argument 28 Counted(Counted const&) { assert(false); } in Counted() argument 29 ~Counted() { assert(count > 0); --count; } in ~Counted() argument
|
H A D | uninitialized_default_construct.pass.cpp | 23 struct Counted { struct 26 explicit Counted() { ++count; ++constructed; } in Counted() function 27 Counted(Counted const&) { assert(false); } in Counted() function 28 ~Counted() { --count; } in ~Counted() argument
|
/aosp_15_r20/external/libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/ |
H A D | uninitialized_value_construct.pass.cpp | 24 struct Counted { struct 28 explicit Counted() { ++count; ++constructed; } in Counted() argument 29 Counted(Counted const&) { assert(false); } in Counted() function 30 ~Counted() { assert(count > 0); --count; } in ~Counted() argument
|
H A D | uninitialized_value_construct_n.pass.cpp | 24 struct Counted { struct 28 explicit Counted() { ++count; ++constructed; } in Counted() argument 29 Counted(Counted const&) { assert(false); } in Counted() argument 30 ~Counted() { --count; } in ~Counted() argument
|
/aosp_15_r20/external/libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/ |
H A D | uninitialized_default_construct.pass.cpp | 24 struct Counted { struct 28 explicit Counted() { ++count; ++constructed; } in Counted() function 29 Counted(Counted const&) { assert(false); } in Counted() function 30 ~Counted() { --count; } in ~Counted() argument
|
H A D | uninitialized_default_construct_n.pass.cpp | 24 struct Counted { struct 28 explicit Counted() { ++count; ++constructed; } in Counted() argument 29 Counted(Counted const&) { assert(false); } in Counted() argument 30 ~Counted() { assert(count > 0); --count; } in ~Counted() argument
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/ |
H A D | uninitialized_value_construct.pass.cpp | 23 struct Counted { struct 27 explicit Counted() { ++count; ++constructed; } in Counted() function 28 Counted(Counted const&) { assert(false); } in Counted() argument 29 ~Counted() { assert(count > 0); --count; } in ~Counted() argument
|
H A D | uninitialized_value_construct_n.pass.cpp | 23 struct Counted { struct 27 explicit Counted() { ++count; ++constructed; } in Counted() argument 28 Counted(Counted const&) { assert(false); } in Counted() argument 29 ~Counted() { --count; } in ~Counted() argument
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/utilities/memory/specialized.algorithms/specialized.destroy/ |
H A D | destroy.pass.cpp | 23 struct Counted { struct 25 TEST_CONSTEXPR Counted(int* counter) : counter_(counter) { ++*counter_; } in Counted() argument 26 TEST_CONSTEXPR Counted(Counted const& other) : counter_(other.counter_) { ++*counter_; } in Counted() argument 27 TEST_CONSTEXPR_CXX20 ~Counted() { --*counter_; } in ~Counted() argument
|
H A D | destroy_n.pass.cpp | 23 struct Counted { struct 25 TEST_CONSTEXPR Counted(int* counter) : counter_(counter) { ++*counter_; } in Counted() argument 26 TEST_CONSTEXPR Counted(Counted const& other) : counter_(other.counter_) { ++*counter_; } in Counted() argument 27 TEST_CONSTEXPR_CXX20 ~Counted() { --*counter_; } in ~Counted() argument
|
H A D | ranges_destroy_n.pass.cpp | 38 struct Counted { struct 41 constexpr Counted(int& count_ref) : count(count_ref) { ++count; } in Counted() argument 42 constexpr Counted(const Counted& rhs) : count(rhs.count) { ++count; } in Counted() argument 43 constexpr ~Counted() { --count; } in ~Counted() argument
|
H A D | ranges_destroy.pass.cpp | 41 struct Counted { struct 44 constexpr Counted(int& count_ref) : count(count_ref) { ++count; } in Counted() argument 45 constexpr Counted(const Counted& rhs) : count(rhs.count) { ++count; } in Counted() argument 46 constexpr ~Counted() { --count; } in ~Counted() argument
|
H A D | destroy_at.pass.cpp | 22 struct Counted { struct 24 TEST_CONSTEXPR Counted(int* counter) : counter_(counter) { ++*counter_; } in Counted() argument 25 TEST_CONSTEXPR_CXX20 ~Counted() { --*counter_; } in ~Counted() argument
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/utilities/memory/specialized.algorithms/specialized.construct/ |
H A D | ranges_construct_at.pass.cpp | 47 struct Counted { struct 50 constexpr Counted(int& count_ref) : count(count_ref) { ++count; } in Counted() argument 51 constexpr Counted(const Counted& rhs) : count(rhs.count) { ++count; } in Counted() argument 52 constexpr ~Counted() { --count; } in ~Counted() argument
|
H A D | construct_at.pass.cpp | 36 struct Counted { struct 38 constexpr Counted(int& count) : count_(count) { ++count; } in Counted() argument 39 constexpr Counted(Counted const& that) : count_(that.count_) { ++count_; } in Counted() argument 40 constexpr ~Counted() { --count_; } in ~Counted() argument
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/iterators/predef.iterators/counted.iterator/ |
H A D | plus.pass.cpp | 39 using Counted = std::counted_iterator<random_access_iterator<int*>>; in test() typedef 47 using Counted = const std::counted_iterator<random_access_iterator<int*>>; in test() typedef 58 using Counted = std::counted_iterator<random_access_iterator<int*>>; in test() typedef 66 using Counted = const std::counted_iterator<random_access_iterator<int*>>; in test() typedef 77 using Counted = std::counted_iterator<random_access_iterator<int*>>; in test() typedef 85 using Counted = std::counted_iterator<contiguous_iterator<int*>>; in test() typedef
|
H A D | increment.pass.cpp | 66 using Counted = std::counted_iterator<forward_iterator<int*>>; in test() typedef 76 using Counted = std::counted_iterator<random_access_iterator<int*>>; in test() typedef 101 using Counted = std::counted_iterator<InputOrOutputArchetype>; in main() typedef 111 using Counted = std::counted_iterator<cpp20_input_iterator<int*>>; in main() typedef 122 using Counted = std::counted_iterator<ThrowsOnInc<int*>>; in main() typedef
|