Home
last modified time | relevance | path

Searched refs:value_ (Results 1 – 25 of 47) sorted by relevance

12

/llvm-project/libcxx/test/support/type_classification/
H A Dswappable.h22 constexpr lvalue_adl_swappable(int value) noexcept : value_(value) {} in lvalue_adl_swappable()
25 : value_(std::move(other.value_)), in lvalue_adl_swappable()
29 : value_(other.value_), in lvalue_adl_swappable()
34 value_ = other.value_;
40 std::ranges::swap(x.value_, y.value_); in swap()
44 return value_ == other.value_ && this_ == this && other.this_ == &other;
48 int value_{};
56 constexpr lvalue_rvalue_adl_swappable(int value) noexcept : value_(value) {} in lvalue_rvalue_adl_swappable()
60 : value_(std::move(other.value_)), in lvalue_rvalue_adl_swappable()
65 : value_(other.value_), in lvalue_rvalue_adl_swappable()
[all …]
/llvm-project/libcxx/test/std/ranges/range.factories/range.iota.view/
H A Dtypes.h17 int value_; member
18 constexpr explicit SomeInt(int value = 0) : value_(value) {} in value_() function
23 lhs.value_ += rhs.value_; return lhs;
26 lhs.value_ -= rhs.value_; return lhs;
30 lhs.value_ += rhs; return lhs;
33 lhs.value_ -= rhs; return lhs;
37 return SomeInt{lhs.value_ + rhs.value_};
40 return lhs.value_ - rhs.value_;
44 return SomeInt{lhs.value_ + rhs};
47 return lhs.value_ - rhs;
[all …]
H A Dctor.value.pass.cpp23 SomeInt value_; member
24 constexpr SomeIntComparable() : value_(SomeInt(10)) {} in SomeIntComparable()
27 return lhs.value_ == rhs.value_; in operator ==()
30 return lhs.value_ == rhs; in operator ==()
33 return lhs == rhs.value_; in operator ==()
37 return lhs.value_ - rhs.value_; in operator -()
40 constexpr SomeIntComparable& operator++() { ++value_; return *this; } in operator ++()
41 constexpr SomeIntComparable operator++(int) { auto tmp = *this; ++value_; return tmp; } in operator ++()
42 constexpr SomeIntComparable operator--() { --value_; return *this; } in operator --()
48 assert((*io.begin()).value_ == 42); in test()
/llvm-project/libcxx/test/support/
H A Dboolean_testable.h20 constexpr operator bool() const { return value_; }
23 return lhs.value_ == rhs.value_;
27 return lhs.value_ != rhs.value_;
31 value_ = !value_;
36 constexpr BooleanTestable(bool value) : value_{value} {} in BooleanTestable()
41 bool value_;
52 constexpr StrictComparable(T value) : value_{value} {} in StrictComparable()
55 return a.value_ == b.value_ ? yes : no;
59 return a.value_ != b.value_ ? yes : no;
63 return a.value_ < b.value_ ? yes : no;
[all …]
H A Dtest_transparent_unordered.h49 explicit SearchedType(T value, int *counter) : value_(value), conversions_(counter) { } in SearchedType()
55 return StoredType<T>{value_};
59 return value_; in get_value()
63 T value_;
70 StoredType(T value) : value_(value) { } in StoredType()
73 return lhs.value_ == rhs.value_;
82 return lhs.value_ == rhs.get_value();
86 return value_; in get_value()
90 T value_;
H A Dhexfloat.h24 T value_;
44 value_ = std::ldexp(m1 + s * std::ldexp(T(m0), exp2), exp); in hexfloat()
47 operator T() const {return value_;}
23 T value_; global() variable
/llvm-project/libcxx/test/std/ranges/range.factories/range.iota.view/iterator/
H A Dstar.pass.cpp27 int value_; member
28 constexpr explicit NotNoexceptCopy(int value = 0) : value_(value) {} in NotNoexceptCopy()
29 constexpr NotNoexceptCopy(const NotNoexceptCopy& other) noexcept(false) : value_(other.value_) {} in NotNoexceptCopy()
34 lhs.value_ += rhs.value_; return lhs; in operator +=()
37 lhs.value_ -= rhs.value_; return lhs; in operator -=()
41 return NotNoexceptCopy{lhs.value_ + rhs.value_}; in operator +()
44 return lhs.value_ - rhs.value_; in operator -()
47 constexpr NotNoexceptCopy& operator++() { ++value_; return *this; } in operator ++()
48 constexpr void operator++(int) { ++value_; } in operator ++()
/llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.mem/
H A Dconstruct_piecewise_pair_evil.pass.cpp46 WidgetV0(int v) : value_(v) {} in WidgetV0()
48 bool holds(int v, const std::pmr::polymorphic_allocator<char>&) const { return value_ == v; } in holds()
51 int value_; member
57 WidgetV1(int v) : value_(v), alloc_() {} in WidgetV1()
58 WidgetV1(std::allocator_arg_t, EvilAlloc<char> a, int v) : value_(v), alloc_(a) {} in WidgetV1()
60 …bool holds(int v, const std::pmr::polymorphic_allocator<char>& a) const { return value_ == v && al… in holds()
63 int value_; member
70 WidgetV2(int v) : value_(v), alloc_() {} in WidgetV2()
71 WidgetV2(int v, EvilAlloc<char> a) : value_(v), alloc_(a) {} in WidgetV2()
73 …bool holds(int v, std::pmr::polymorphic_allocator<char> a) const { return value_ == v && alloc_.in… in holds()
[all …]
/llvm-project/flang/include/flang/Common/
H A Dfast-int-set.h37 const int *value() const { return &value_[0]; } in value()
48 value_[j] = index_[j] = 0; in InitializeState()
57 return j >= 0 && j < size_ && value_[j] == n; in Contains()
66 value_[index_[n] = size_++] = n; in Add()
77 int last{value_[--size_]}; in Remove()
78 value_[index_[last] = index_[n]] = last; in Remove()
90 return value_[--size_]; in PopValue()
97 return j >= 0 && j < size_ && value_[j] == n; in UncheckedContains()
100 int value_[N]; variable
/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
H A DPR23256_constrain_UTypes_ctor.pass.cpp33 int value_; member
35 UnconstrainedCtor() : value_(0) {} in UnconstrainedCtor()
42 constexpr UnconstrainedCtor(T value) noexcept(noexcept(value_ = value)) in UnconstrainedCtor()
43 : value_(static_cast<int>(value)) in UnconstrainedCtor()
50 int value_; member
52 ExplicitUnconstrainedCtor() : value_(0) {} in ExplicitUnconstrainedCtor()
56 noexcept(noexcept(value_ = value)) in ExplicitUnconstrainedCtor()
57 : value_(static_cast<int>(value)) in ExplicitUnconstrainedCtor()
/llvm-project/clang/test/SemaCXX/
H A Ddecltype.cpp106 float value_;
108 float value_;
114 float value_;
124 using okay = decltype(Foo::value_);
126 using okay2 = decltype(Foo::nested::value_);
127 using okay3 = decltype(TemplateFoo<T>::value_);
130 using okay = decltype(Foo::value_);
132 using okay2 = decltype(Foo::nested::value_);
133 using okay3 = decltype(TemplateFoo<T>::value_);
H A Dwarn-unsequenced-coro.cpp54 value_ = std::move(value); in yield_value()
58 T value_; member
78 const_reference &operator*() const { return h_.promise().value_; } in operator *()
/llvm-project/libcxx/test/std/iterators/iterator.requirements/iterator.cust/iterator.cust.swap/
H A Diter_swap.pass.cpp25 int &value_; member
26 constexpr explicit HasIterSwap(int &value) : value_(value) { assert(value == 0); } in HasIterSwap()
29 a.value_ = 1; in iter_swap()
30 b.value_ = 1; in iter_swap()
33 a.value_ = 2; in iter_swap()
64 int &value_; member
65 constexpr explicit HasRangesSwap(int &value) : value_(value) { assert(value == 0); } in HasRangesSwap()
68 a.value_ = 1; in swap()
69 b.value_ = 1; in swap()
72 a.value_ = 2; in swap()
[all …]
/llvm-project/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/
H A Dtypes.h27 : count_(count), value_(*count) in DestroyInReverseOrder()
31 : count_(other.count_), value_(*other.count_) in DestroyInReverseOrder()
34 constexpr int value() const { return value_; } in value()
39 assert(*count_ == value_); in ~DestroyInReverseOrder()
44 int value_; member
/llvm-project/compiler-rt/test/asan/TestCases/Darwin/
H A Dasan-symbolize-templated-cxx.cpp15 int value_; member in IntWrapper
19 IntWrapper(int value, std::function<CallBackTy> callback) : value_(value), callback_(callback) {} in IntWrapper()
21 value_ = new_value; in operator =()
22 callback_(value_); in operator =()
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.chunk.by/
H A Dtypes.h48 constexpr IntWrapper(int v) : value_(v) {} in IntWrapper()
50 int value_; member
51 constexpr bool lessEqual(IntWrapper other) const { return value_ <= other.value_; } in lessEqual()
/llvm-project/clang/test/CXX/temp/temp.decls/temp.friend/
H A Dp1.cpp5 T value_; member
8 Num(T value) : value_(value) {} in Num()
9 T get() const { return value_; } in get()
24 return a.value_ + b.value_; in operator +()
28 value_ += b.value_; in operator +=()
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Dpro-type-member-init.cpp581 explicit A(int value) : value_(value) {} in A()
582 int value_; member
587 explicit B(int value) : value_(value) {} in B()
588 int value_; member
594 explicit C(T value) : value_(value) {} in C()
595 T value_; member
/llvm-project/clang/test/SemaObjCXX/
H A Dwarn-thread-safety-analysis.mm8 int value_; field
20 value_ += 1;
25 value_ -= 1;
/llvm-project/third-party/unittest/googletest/include/gtest/internal/
H A Dgtest-param-util.h232 : base_(base), value_(value), index_(index), step_(step) {} in Iterator()
239 value_ = static_cast<T>(value_ + step_); in Advance()
245 const T* Current() const override { return &value_; } in Current()
261 value_(other.value_), in Iterator()
269 T value_; variable
326 value_.reset(); in Advance()
339 if (value_.get() == nullptr) value_.reset(new T(*iterator_)); in Current()
340 return value_.get(); in Current()
367 mutable std::unique_ptr<const T> value_; variable
970 if (it_ != end_) value_ = std::make_shared<To>(static_cast<To>(*it_)); in Iterator()
[all …]
H A Dgtest-port.h1579 ValueHolder() : value_() {}
1580 explicit ValueHolder(const T& value) : value_(value) {}
1582 T* pointer() { return &value_; }
1585 T value_;
1624 explicit InstanceValueHolderFactory(const T& value) : value_(value) {}
1626 return new ValueHolder(value_);
1630 const T value_; // The value for each thread.
1782 ValueHolder() : value_() {}
1783 explicit ValueHolder(const T& value) : value_(value) {}
1785 T* pointer() { return &value_; }
[all …]
/llvm-project/flang/lib/Decimal/
H A Ddecimal-to-binary.cpp206 value_ = n; in SetTo()
212 value_ = n; in SetTo()
216 value_ = n >> shift; in SetTo()
225 RT_API_ATTRS void ShiftIn(int bit = 0) { value_ = value_ + value_ + bit; } in ShiftIn()
226 RT_API_ATTRS bool IsFull() const { return value_ >= topBit; } in IsFull()
240 IntType value_{0}; member in Fortran::decimal::IntermediateFloat
260 IntType fraction{value_}; in ToBinary()
/llvm-project/libcxx/test/std/utilities/function.objects/refwrap/refwrap.comparissons/
H A Dhelper_types.h15 constexpr EqualityComparable(int value) : value_{value} {}; in EqualityComparable()
19 int value_; member
/llvm-project/clang/test/CodeGenCXX/
H A Dbuiltin-constant-p.cpp16 : value_(static_cast<T>(value)) {} in numeric()
19 const T value_; member in numeric
/llvm-project/libcxx/test/std/language.support/cmp/cmp.alg/
H A Dcompare_partial_order_fallback.pass.cpp250 double value_; member
251 constexpr explicit A(Stats *stats, double value) : stats_(stats), value_(value) {} in A()
252 friend constexpr bool operator==(A a, A b) { a.stats_->eq += 1; return a.value_ == b.value_; } in operator ==()
253 friend constexpr bool operator<(A a, A b) { a.stats_->lt += 1; return a.value_ < b.value_; } in operator <()

12