Home
last modified time | relevance | path

Searched defs:Counted (Results 1 – 25 of 33) sorted by relevance

12

/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/utilities/memory/specialized.algorithms/
H A Dcounted.h15 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 Duninitialized_move.pass.cpp24 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 Duninitialized_move_n.pass.cpp24 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 Duninitialized_move.pass.cpp24 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 Duninitialized_move_n.pass.cpp24 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 Ddestroy.pass.cpp24 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 Ddestroy_n.pass.cpp24 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 Ddestroy_at.pass.cpp21 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 Duninitialized_default_construct_n.pass.cpp23 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 Duninitialized_default_construct.pass.cpp23 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 Duninitialized_value_construct.pass.cpp24 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 Duninitialized_value_construct_n.pass.cpp24 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 Duninitialized_default_construct.pass.cpp24 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 Duninitialized_default_construct_n.pass.cpp24 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 Duninitialized_value_construct.pass.cpp23 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 Duninitialized_value_construct_n.pass.cpp23 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 Ddestroy.pass.cpp23 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 Ddestroy_n.pass.cpp23 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 Dranges_destroy_n.pass.cpp38 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 Dranges_destroy.pass.cpp41 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 Ddestroy_at.pass.cpp22 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 Dranges_construct_at.pass.cpp47 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 Dconstruct_at.pass.cpp36 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 Dplus.pass.cpp39 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 Dincrement.pass.cpp66 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

12