Home
last modified time | relevance | path

Searched refs:has_value (Results 1 – 25 of 36) sorted by relevance

12

/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/
Dtuple_size_value_sfinae.pass.cpp25 constexpr bool has_value(int) { return true; } in has_value() function
26 template <class> constexpr bool has_value(long) { return false; } in has_value() function
27 template <class T> constexpr bool has_value() { return has_value<T>(0); } in has_value() function
33 static_assert(has_value<std::tuple<int> const>(), ""); in main()
34 static_assert(has_value<std::pair<int, long> volatile>(), ""); in main()
35 static_assert(!has_value<int>(), ""); in main()
36 static_assert(!has_value<const int>(), ""); in main()
37 static_assert(!has_value<volatile void>(), ""); in main()
38 static_assert(!has_value<const volatile std::tuple<int>&>(), ""); in main()
/external/libcxx/test/std/utilities/any/any.class/any.observers/
Dhas_value.pass.cpp27 static_assert(noexcept(a.has_value()), "any::has_value() must be noexcept"); in main()
32 assert(!a.has_value()); in main()
35 assert(!a.has_value()); in main()
38 assert(a.has_value()); in main()
44 assert(a.has_value()); in main()
47 assert(!a.has_value()); in main()
50 assert(a.has_value()); in main()
56 assert(a.has_value()); in main()
59 assert(!a.has_value()); in main()
62 assert(a.has_value()); in main()
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
Dcopy.pass.cpp42 return !lhs.has_value() && !rhs.has_value(); in assign_empty()
49 return lhs.has_value() && rhs.has_value() && *lhs == *rhs; in assign_value()
81 assert(!opt2.has_value()); in main()
82 assert(!opt.has_value()); in main()
/external/libcxx/test/std/utilities/any/any.class/any.assign/
Dmove.pass.cpp43 assert(RHS::count == 2 + a2.has_value()); in test_move_assign()
47 if (a2.has_value()) in test_move_assign()
49 LIBCPP_ASSERT(!a2.has_value()); in test_move_assign()
66 assert(LHS::count == 1 + a2.has_value()); in test_move_assign_empty()
70 if (a2.has_value()) in test_move_assign_empty()
72 LIBCPP_ASSERT(!a2.has_value()); in test_move_assign_empty()
Dvalue.pass.cpp69 assert(RHS::count == 1 + rhs.has_value()); in test_assign_value()
70 LIBCPP_ASSERT(!rhs.has_value()); in test_assign_value()
73 if (rhs.has_value()) in test_assign_value()
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.observe/
Dhas_value.pass.cpp26 ASSERT_NOEXCEPT(opt.has_value()); in main()
27 ASSERT_SAME_TYPE(decltype(opt.has_value()), bool); in main()
31 static_assert(!opt.has_value(), ""); in main()
35 static_assert(opt.has_value(), ""); in main()
/external/v8/src/
Dproperty-descriptor.h36 return desc->has_value() || desc->has_writable(); in IsDataDescriptor()
57 !has_value() && !has_get() && !has_set(); in is_empty()
61 return has_configurable() && has_enumerable() && !has_value() && in IsRegularAccessorProperty()
66 return has_configurable() && has_enumerable() && has_value() && in IsRegularDataProperty()
86 bool has_value() const { return !value_.is_null(); } in has_value() function
Dproperty-descriptor.cc105 (desc->has_value() || desc->has_writable())) { in ToPropertyDescriptorFastPath()
159 if (has_value()) { in ToObject()
290 (desc->has_value() || desc->has_writable())) { in ToPropertyDescriptor()
316 if (!desc->has_value()) { in CompletePropertyDescriptor()
Dflag-definitions.h113 static MaybeBoolFlag Create(bool has_value, bool value) { in Create()
115 flag.has_value = has_value; in Create()
119 bool has_value; member
Dflags.cc139 return maybe_bool_variable()->has_value == false; in IsDefault()
220 os << (flag.maybe_bool_variable()->has_value in operator <<()
/external/v8/testing/
Dgmock-support.h22 bool has_value() const { return has_value_; } in has_value() function
25 DCHECK(!has_value()); in SetValue()
45 if (capture_->has_value()) *os << " which has value " << capture_->value(); in DescribeTo()
49 if (!capture_->has_value()) { in MatchAndExplain()
/external/autotest/client/cros/
Dkernel_config.py56 def has_value(self, name, value): member in KernelConfig
70 self.has_value(name, ['y'])
78 self.has_value(name, ['m'])
86 self.has_value(name, ['y', 'm'])
94 self.has_value(name, [None])
/external/libcxx/include/
Doptional126 constexpr bool has_value() const noexcept;
282 constexpr bool has_value() const noexcept
312 _LIBCPP_ASSERT(!has_value(), "__construct called for engaged __optional_storage");
321 if (__opt.has_value())
329 if (this->__engaged_ == __opt.has_value())
388 constexpr bool has_value() const noexcept
403 _LIBCPP_ASSERT(!has_value(), "__construct called for engaged __optional_storage");
414 if (__opt.has_value())
422 if (has_value() == __opt.has_value())
424 if (has_value())
[all …]
/external/libcxx/test/std/utilities/any/any.class/any.cons/
Dmove.pass.cpp82 assert(Type::count == 1 + a.has_value()); in test_move()
84 LIBCPP_ASSERT(!a.has_value()); // Moves are always destructive. in test_move()
85 if (a.has_value()) in test_move()
/external/autotest/client/site_tests/kernel_ConfigVerify/
Dkernel_ConfigVerify.py195 config.has_value('DEFAULT_MMAP_MIN_ADDR', [wanted])
217 config.has_value('MMAP_NOEXEC_TAINT', ['0'])
223 config.has_value('DEFAULT_IO_DELAY_TYPE', [needed])
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/
Dmove.pass.cpp150 assert(lhs.has_value() == false); in main()
151 assert(rhs.has_value() == false); in main()
163 assert(lhs.has_value()); in main()
164 assert(rhs.has_value()); in main()
Dcopy.pass.cpp122 assert(lhs.has_value() == false); in main()
134 assert(lhs.has_value()); in main()
/external/libcxx/test/support/
Dany_helpers.h42 return a.has_value() && std::any_cast<T>(&a) != nullptr; in containsType()
57 assert(!a.has_value()); in assertEmpty()
72 assert(a.has_value()); in assertContains()
80 assert(a.has_value()); in assertContains()
92 assert(a.has_value()); in modifyValue()
425 assert(a.has_value()); in assertArgsMatch()
/external/protobuf/src/google/protobuf/
Dmap_entry_lite.h174 size += has_value() ? kTagSize + ValueTypeHandler::ByteSize(value()) : 0; in ByteSize()
194 size += has_value() in GetCachedSize()
229 if (from.has_value()) { in MergeFrom()
279 bool has_value() const { return (_has_bits_[0] & 0x00000002u) != 0; } in has_value() function
/external/mesa3d/src/compiler/glsl/
Dir_constant_expression.cpp650 return new(ctx) ir_constant(op[0]->has_value(op[1])); in constant_expression_value()
652 return new(ctx) ir_constant(!op[0]->has_value(op[1])); in constant_expression_value()
Dir.cpp1059 ir_constant::has_value(const ir_constant *c) const in has_value() function in ir_constant
1066 if (!this->array_elements[i]->has_value(c->array_elements[i])) in has_value()
1082 if (!a_field->has_value(b_field)) in has_value()
/external/webrtc/webrtc/base/
Dwin32regkey.cc761 bool has_value = false; in HasValue() local
769 has_value = key.HasValue(value_name); in HasValue()
773 return has_value; in HasValue()
/external/libmojo/third_party/catapult/devil/devil/android/sdk/
Dshared_prefs.py55 def has_value(self): member in BasePref
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs.py59 def has_value(self): member in BasePref
/external/v8/src/arm/
Dassembler-arm.cc78 if (FLAG_enable_armv7.has_value || FLAG_enable_vfp3.has_value || in CpuFeaturesFromCommandLine()
79 FLAG_enable_32dregs.has_value || FLAG_enable_neon.has_value || in CpuFeaturesFromCommandLine()
80 FLAG_enable_sudiv.has_value || FLAG_enable_armv8.has_value) { in CpuFeaturesFromCommandLine()
89 if (FLAG_enable_armv7.has_value) { in CpuFeaturesFromCommandLine()
95 if (FLAG_enable_vfp3.has_value) { in CpuFeaturesFromCommandLine()
101 if (FLAG_enable_32dregs.has_value) { in CpuFeaturesFromCommandLine()
107 if (FLAG_enable_neon.has_value) { in CpuFeaturesFromCommandLine()
113 if (FLAG_enable_sudiv.has_value) { in CpuFeaturesFromCommandLine()
119 if (FLAG_enable_armv8.has_value) { in CpuFeaturesFromCommandLine()

12