Home
last modified time | relevance | path

Searched refs:data_ (Results 1 – 25 of 77) sorted by relevance

1234

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/
DUTypes.fail.cpp30 int data_; member in MoveOnly
32 explicit MoveOnly(int data = 1) : data_(data) {} in MoveOnly()
34 : data_(x.data_) {x.data_ = 0;} in MoveOnly()
36 {data_ = x.data_; x.data_ = 0; return *this;} in operator =()
38 int get() const {return data_;} in get()
40 bool operator==(const MoveOnly& x) const {return data_ == x.data_;} in operator ==()
41 bool operator< (const MoveOnly& x) const {return data_ < x.data_;} in operator <()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/tuple/tuple.tuple/
DMoveOnly.h23 int data_; variable
25 MoveOnly(int data = 1) : data_(data) {} in data_() function
27 : data_(x.data_) {x.data_ = 0;} in MoveOnly()
29 {data_ = x.data_; x.data_ = 0; return *this;}
31 int get() const {return data_;} in get()
33 bool operator==(const MoveOnly& x) const {return data_ == x.data_;}
34 bool operator< (const MoveOnly& x) const {return data_ < x.data_;}
Dalloc_last.h23 int data_; member
25 alloc_last() : data_(0) {} in alloc_last()
26 alloc_last(int d) : data_(d) {} in alloc_last()
28 : data_(0) in alloc_last()
35 : data_(d) in alloc_last()
42 : data_(d.data_) in alloc_last()
48 ~alloc_last() {data_ = -1;} in ~alloc_last()
51 {return x.data_ == y.data_;}
53 {return x.data_ < y.data_;}
Dalloc_first.h23 int data_; member
25 alloc_first() : data_(0) {} in alloc_first()
26 alloc_first(int d) : data_(d) {} in alloc_first()
28 : data_(0) in alloc_first()
35 : data_(d) in alloc_first()
42 : data_(d.data_) in alloc_first()
48 ~alloc_first() {data_ = -1;} in ~alloc_first()
51 {return x.data_ == y.data_;}
53 {return x.data_ < y.data_;}
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/
DMoveOnly.h23 int data_; variable
25 MoveOnly(int data = 1) : data_(data) {} in data_() function
27 : data_(x.data_) {x.data_ = 0;} in MoveOnly()
29 {data_ = x.data_; x.data_ = 0; return *this;}
31 int get() const {return data_;} in get()
33 bool operator==(const MoveOnly& x) const {return data_ == x.data_;}
34 bool operator< (const MoveOnly& x) const {return data_ < x.data_;}
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support/
Dtest_allocator.h39 int data_; variable
54 test_allocator() throw() : data_(0) {++count;} in throw()
55 explicit test_allocator(int i) throw() : data_(i) {++count;} in test_allocator()
57 : data_(a.data_) {++count;} in throw()
59 : data_(a.data_) {++count;} in test_allocator()
60 ~test_allocator() throw() {assert(data_ >= 0); --count; data_ = -1;} in throw()
65 assert(data_ >= 0);
78 {assert(data_ >= 0); --alloc_count; std::free(p);} in deallocate()
90 {return x.data_ == y.data_;}
99 int data_; variable
[all …]
DDefaultOnly.h17 int data_; variable
24 DefaultOnly() : data_(-1) {++count;} in DefaultOnly()
25 ~DefaultOnly() {data_ = 0; --count;} in ~DefaultOnly()
28 {return x.data_ == y.data_;}
30 {return x.data_ < y.data_;}
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/
Drep.h15 int data_; variable
17 _LIBCPP_CONSTEXPR Rep() : data_(-1) {} in Rep()
18 explicit _LIBCPP_CONSTEXPR Rep(int i) : data_(i) {} in Rep()
20 bool _LIBCPP_CONSTEXPR operator==(int i) const {return data_ == i;}
21 bool _LIBCPP_CONSTEXPR operator==(const Rep& r) const {return data_ == r.data_;}
23 Rep& operator*=(Rep x) {data_ *= x.data_; return *this;}
24 Rep& operator/=(Rep x) {data_ /= x.data_; return *this;}
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/
Dtest_allocator.h34 int data_; variable
49 test_allocator() throw() : data_(-1) {} in throw()
50 explicit test_allocator(int i) throw() : data_(i) {} in test_allocator()
52 : data_(a.data_) {} in throw()
54 : data_(a.data_) {} in test_allocator()
55 ~test_allocator() throw() {data_ = 0;} in throw()
83 {return x.data_ == y.data_;}
92 int data_; variable
105 test_allocator() throw() : data_(-1) {} in throw()
106 explicit test_allocator(int i) throw() : data_(i) {} in test_allocator()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opref/
Dop_arrow.pass.cpp28 int data_; member in A
30 A() : data_(1) {} in A()
31 ~A() {data_ = -1;} in ~A()
33 int get() const {return data_;} in get()
36 {return x.data_ == y.data_;} in operator ==()
49 int data_; member in B
51 B(int d=1) : data_(d) {} in B()
52 ~B() {data_ = -1;} in ~B()
54 int get() const {return data_;} in get()
57 {return x.data_ == y.data_;} in operator ==()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/utility/pairs/pairs.pair/
Dconst_first_const_second.pass.cpp21 int data_; member in A
23 A(int data) : data_(data) {} in A()
25 bool operator==(const A& a) const {return data_ == a.data_;} in operator ==()
31 int data_; member in AC
33 constexpr AC(int data) : data_(data) {} in AC()
35 constexpr bool operator==(const AC& a) const {return data_ == a.data_;} in operator ==()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/specialized.algorithms/uninitialized.fill/
Duninitialized_fill.pass.cpp23 int data_; member
24 explicit B() : data_(1) {} in B()
25 B(const B& b) {if (++count_ == 3) throw 1; data_ = b.data_;} in B()
26 ~B() {data_ = 0;} in ~B()
44 assert(bp[i].data_ == 0); in main()
49 assert(bp[i].data_ == 1); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/specialized.algorithms/uninitialized.copy/
Duninitialized_copy_n.pass.cpp23 int data_; member
24 explicit B() : data_(1) {} in B()
25 B(const B& b) {if (++count_ == 3) throw 1; data_ = b.data_;} in B()
26 ~B() {data_ = 0;} in ~B()
45 assert(bp[i].data_ == 0); in main()
50 assert(bp[i].data_ == 1); in main()
Duninitialized_copy.pass.cpp23 int data_; member
24 explicit B() : data_(1) {} in B()
25 B(const B& b) {if (++count_ == 3) throw 1; data_ = b.data_;} in B()
26 ~B() {data_ = 0;} in ~B()
45 assert(bp[i].data_ == 0); in main()
50 assert(bp[i].data_ == 1); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/specialized.algorithms/uninitialized.fill.n/
Duninitialized_fill_n.pass.cpp22 int data_; member
23 explicit B() : data_(1) {} in B()
24 B(const B& b) {if (++count_ == 3) throw 1; data_ = b.data_;} in B()
25 ~B() {data_ = 0;} in ~B()
43 assert(bp[i].data_ == 0); in main()
49 assert(bp[i].data_ == 1); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.exception/except.nested/
Dthrow_with_nested.pass.cpp22 int data_; member in A
24 explicit A(int data) : data_(data) {} in A()
26 friend bool operator==(const A& x, const A& y) {return x.data_ == y.data_;} in operator ==()
32 int data_; member in B
34 explicit B(int data) : data_(data) {} in B()
36 friend bool operator==(const B& x, const B& y) {return x.data_ == y.data_;} in operator ==()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/utility/operators/
Drel_ops.pass.cpp17 int data_; member
19 explicit A(int data = -1) : data_(data) {} in A()
26 return x.data_ == y.data_; in operator ==()
33 return x.data_ < y.data_; in operator <()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.tas/futures.task.members/
Dctor_func.pass.cpp22 long data_; member in A
28 explicit A(long i) : data_(i) {} in A()
29 A(A&& a) : data_(a.data_) {++n_moves; a.data_ = -1;} in A()
30 A(const A& a) : data_(a.data_) {++n_copies;} in A()
32 long operator()(long i, long j) const {return data_ + i + j;} in operator ()()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/storage.iterator/
Draw_storag_iterator.pass.cpp20 int data_; member
22 explicit A(int i) : data_(i) {++A_constructed;} in A()
24 A(const A& a) : data_(a.data_) {++A_constructed;} in A()
25 ~A() {--A_constructed; data_ = 0;} in ~A()
27 bool operator==(int i) const {return data_ == i;} in operator ==()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op.star/
Dop_star.pass.cpp26 int data_; member in A
28 A() : data_(1) {} in A()
29 ~A() {data_ = -1;} in ~A()
32 {return x.data_ == y.data_;} in operator ==()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/predef.iterators/insert.iterators/back.insert.iter.ops/back.insert.iter.op=/
Dlv_value.pass.cpp34 int data_; member in Copyable
36 Copyable() : data_(0) {} in Copyable()
37 ~Copyable() {data_ = -1;} in ~Copyable()
40 {return x.data_ == y.data_;} in operator ==()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/predef.iterators/insert.iterators/front.insert.iter.ops/front.insert.iter.op=/
Dlv_value.pass.cpp34 int data_; member in Copyable
36 Copyable() : data_(0) {} in Copyable()
37 ~Copyable() {data_ = -1;} in ~Copyable()
40 {return x.data_ == y.data_;} in operator ==()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.exception/propagation/
Drethrow_exception.pass.cpp20 int data_; member
22 A(int data = 0) : data_(data) {++constructed;} in A()
24 A(const A& a) : data_(a.data_) {++constructed;} in A()
52 assert(a.data_ == 3); in main()
Dmake_exception_ptr.pass.cpp20 int data_; member
22 A(int data = 0) : data_(data) {++constructed;} in A()
24 A(const A& a) : data_(a.data_) {++constructed;} in A()
44 assert(a.data_ == 5); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.star/
Dop_star.pass.cpp24 int data_; member in A
26 A() : data_(1) {} in A()
27 ~A() {data_ = -1;} in ~A()
30 {return x.data_ == y.data_;} in operator ==()

1234