/external/libcxx/test/std/utilities/any/any.class/any.observers/ |
has_value.pass.cpp | 14 // any::has_value() noexcept 27 static_assert(noexcept(a.has_value()), "any::has_value() must be noexcept"); 32 assert(!a.has_value()); 35 assert(!a.has_value()); 38 assert(a.has_value()); 44 assert(a.has_value()); 47 assert(!a.has_value()); 50 assert(a.has_value()); 56 assert(a.has_value()); [all...] |
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/ |
tuple_size_value_sfinae.pass.cpp | 25 constexpr bool has_value(int) { return true; } function 26 template <class> constexpr bool has_value(long) { return false; } function 27 template <class T> constexpr bool has_value() { return has_value<T>(0); } function 33 static_assert(has_value<std::tuple<int> const>(), ""); 34 static_assert(has_value<std::pair<int, long> volatile>(), ""); 35 static_assert(!has_value<int>(), ""); 36 static_assert(!has_value<const int>(), ""); 37 static_assert(!has_value<volatile void>(), ""); 38 static_assert(!has_value<const volatile std::tuple<int>&>(), "") [all...] |
/system/chre/util/tests/ |
optional_test.cc | 27 EXPECT_FALSE(myInt.has_value()); 32 EXPECT_TRUE(myInt.has_value()); 38 EXPECT_TRUE(myInt.has_value()); 44 EXPECT_FALSE(myInt.has_value()); 47 EXPECT_TRUE(myInt.has_value()); 49 EXPECT_FALSE(myInt.has_value()); 54 EXPECT_FALSE(myInt.has_value()); 56 EXPECT_TRUE(myInt.has_value()); 63 EXPECT_FALSE(myMovedInt.has_value()); 65 EXPECT_TRUE(myInt.has_value()); [all...] |
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.observe/ |
has_value.pass.cpp | 13 // constexpr bool optional<T>::has_value() const noexcept; 26 ASSERT_NOEXCEPT(opt.has_value()); 27 ASSERT_SAME_TYPE(decltype(opt.has_value()), bool); 31 static_assert(!opt.has_value(), ""); 35 static_assert(opt.has_value(), "");
|
/external/v8/testing/ |
gmock-support.h | 22 bool has_value() const { return has_value_; } function in class:testing::Capture 25 DCHECK(!has_value()); 45 if (capture_->has_value()) *os << " which has value " << capture_->value(); 49 if (!capture_->has_value()) {
|
/external/v8/src/ |
property-descriptor.h | 36 return desc->has_value() || desc->has_writable(); 57 !has_value() && !has_get() && !has_set(); 61 return has_configurable() && has_enumerable() && !has_value() && 66 return has_configurable() && has_enumerable() && has_value() && 86 bool has_value() const { return !value_.is_null(); } function in class:v8::internal::PropertyDescriptor
|
property-descriptor.cc | 105 (desc->has_value() || desc->has_writable())) { 159 if (has_value()) { 290 (desc->has_value() || desc->has_writable())) { 316 if (!desc->has_value()) {
|
/external/libcxx/test/std/utilities/any/any.class/any.assign/ |
move.pass.cpp | 43 assert(RHS::count == 2 + a2.has_value()); 47 if (a2.has_value()) 49 LIBCPP_ASSERT(!a2.has_value()); 66 assert(LHS::count == 1 + a2.has_value()); 70 if (a2.has_value()) 72 LIBCPP_ASSERT(!a2.has_value());
|
value.pass.cpp | 69 assert(RHS::count == 1 + rhs.has_value()); 70 LIBCPP_ASSERT(!rhs.has_value()); 73 if (rhs.has_value())
|
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/ |
copy.pass.cpp | 42 return !lhs.has_value() && !rhs.has_value(); 49 return lhs.has_value() && rhs.has_value() && *lhs == *rhs; 81 assert(!opt2.has_value()); 82 assert(!opt.has_value());
|
/system/chre/core/ |
wwan_request_manager.cc | 39 if (!mCellInfoRequestingNanoappInstanceId.has_value()) { 66 if (mCellInfoRequestingNanoappInstanceId.has_value()) { 83 if (mCellInfoRequestingNanoappInstanceId.has_value()) { 93 if (mCellInfoRequestingNanoappInstanceId.has_value()) {
|
sensor_request_manager.cc | 80 if (mSensorRequests[i].sensor.has_value()) { 95 sensorHandleIsValid = mSensorRequests[sensorIndex].sensor.has_value(); 118 if (!requests.sensor.has_value()) { 195 if (!mSensorRequests[sensorIndex].sensor.has_value()) { 249 if (mSensorRequests[sensorIndex].sensor.has_value()) { 267 if (mSensorRequests[sensorIndex].sensor.has_value()) { 329 CHRE_ASSERT(sensor.has_value()); 357 CHRE_ASSERT(sensor.has_value()); 385 CHRE_ASSERT(sensor.has_value()); 409 CHRE_ASSERT(sensor.has_value()); [all...] |
wifi_request_manager.cc | 85 bool timedOut = (mScanRequestingNanoappInstanceId.has_value() 95 if (mScanRequestingNanoappInstanceId.has_value()) { 190 if (mScanRequestingNanoappInstanceId.has_value()) { 433 //CHRE_ASSERT_LOG(mScanRequestingNanoappInstanceId.has_value(), 435 if (!mScanRequestingNanoappInstanceId.has_value()) { 445 if (mScanRequestingNanoappInstanceId.has_value()) { 491 && mScanRequestingNanoappInstanceId.has_value()) {
|
/system/chre/util/include/chre/util/ |
optional.h | 58 bool has_value() const; 62 * has_value() will return false after this function returns) 68 * contains a value, so this object will be uninitialized if has_value() is 112 * The behavior of this is undefined if has_value() returns false. 121 * container. The behavior of this is undefined if has_value() returns false. 130 * object may not be well-formed if has_value() returns false. 139 * The object may not be well-formed if has_value() returns false.
|
/external/libcxx/include/ |
optional | 126 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()) [all...] |
/prebuilts/clang/host/darwin-x86/clang-4053586/include/c++/v1/ |
optional | 126 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()) [all...] |
/prebuilts/clang/host/linux-x86/clang-4053586/include/c++/v1/ |
optional | 126 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()) [all...] |
/external/autotest/client/cros/ |
kernel_config.py | 56 def has_value(self, name, value): member in class: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])
|
/tools/test/connectivity/acts/framework/acts/libs/config/ |
data_source.py | 64 def has_value(self, key): member in class:DictConfigDataSource 139 values = [c.get_value(key) for c in self.configs if c.has_value(key)] 150 if c.has_value(key): 156 def has_value(self, key): member in class:MergeConfigDataSource 158 return any(c.has_value(key) for c in self.configs)
|
schema.py | 123 def has_value(self, key): member in class:ConfigSchema 125 return self.inner.has_value(key)
|
/external/libcxx/test/std/utilities/any/any.class/any.cons/ |
move.pass.cpp | 82 assert(Type::count == 1 + a.has_value()); 84 LIBCPP_ASSERT(!a.has_value()); // Moves are always destructive. 85 if (a.has_value())
|
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/ |
move.pass.cpp | 150 assert(lhs.has_value() == false); 151 assert(rhs.has_value() == false); 163 assert(lhs.has_value()); 164 assert(rhs.has_value());
|
copy.pass.cpp | 122 assert(lhs.has_value() == false); 134 assert(lhs.has_value());
|
/external/libcxx/test/support/ |
any_helpers.h | 42 return a.has_value() && std::any_cast<T>(&a) != nullptr; 57 assert(!a.has_value()); 72 assert(a.has_value()); 80 assert(a.has_value()); 92 assert(a.has_value()); 425 assert(a.has_value());
|
/external/autotest/client/site_tests/kernel_ConfigVerify/ |
kernel_ConfigVerify.py | 195 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])
|