| /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...] |
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/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...] |
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/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/tensorflow/tensorflow/contrib/boosted_trees/lib/utils/ |
| example_test.cc | 57 EXPECT_FALSE(matrix[0][0].has_value()); 58 EXPECT_TRUE(matrix[0][1].has_value()); 60 EXPECT_TRUE(matrix[0][2].has_value()); 64 EXPECT_TRUE(matrix[1][0].has_value()); 66 EXPECT_FALSE(matrix[1][1].has_value()); 67 EXPECT_TRUE(matrix[1][2].has_value()); 71 EXPECT_TRUE(matrix[2][0].has_value()); 73 EXPECT_TRUE(matrix[2][1].has_value()); 75 EXPECT_TRUE(matrix[2][2].has_value()); 79 EXPECT_FALSE(matrix[3][0].has_value()); [all...] |
| examples_iterable_test.cc | 77 EXPECT_TRUE(example.sparse_float_features[0][0].has_value()); 80 EXPECT_FALSE(example.sparse_float_features[1][0].has_value()); 81 EXPECT_TRUE(example.sparse_float_features[1][1].has_value()); 93 EXPECT_FALSE(example.sparse_float_features[0][0].has_value()); 95 EXPECT_TRUE(example.sparse_float_features[1][0].has_value()); 97 EXPECT_FALSE(example.sparse_float_features[1][1].has_value()); 108 EXPECT_TRUE(example.sparse_float_features[0][0].has_value()); 111 EXPECT_FALSE(example.sparse_float_features[1][0].has_value()); 112 EXPECT_TRUE(example.sparse_float_features[1][1].has_value()); 123 EXPECT_TRUE(example.sparse_float_features[0][0].has_value()); [all...] |
| optional_value.h | 32 bool has_value() const { return has_value_; } function in class:tensorflow::boosted_trees::utils::OptionalValue 34 QCHECK(has_value());
|
| /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(), "");
|
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/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()) {
|
| /system/core/init/ |
| result_test.cpp | 33 ASSERT_TRUE(result.has_value()); 43 ASSERT_TRUE(Result<std::string>("success").has_value()); 54 ASSERT_TRUE(result.has_value()); 66 ASSERT_TRUE(MakeRvalueSuccessResult().has_value()); 75 ASSERT_FALSE(result.has_value()); 84 ASSERT_FALSE(result.has_value()); 99 ASSERT_FALSE(MakeRvalueErrorResult().has_value()); 111 ASSERT_FALSE(result.has_value()); 123 ASSERT_FALSE(result.has_value()); 134 ASSERT_FALSE(result.has_value()); [all...] |
| /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
|
| /external/libcxx/test/std/utilities/any/any.class/any.assign/ |
| move.pass.cpp | 50 assert(RHS::count == 2 + a2.has_value()); 54 if (a2.has_value()) 56 LIBCPP_ASSERT(!a2.has_value()); 73 assert(LHS::count == 1 + a2.has_value()); 77 if (a2.has_value()) 79 LIBCPP_ASSERT(!a2.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());
|
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/any/any.class/any.assign/ |
| move.pass.cpp | 50 assert(RHS::count == 2 + a2.has_value()); 54 if (a2.has_value()) 56 LIBCPP_ASSERT(!a2.has_value()); 73 assert(LHS::count == 1 + a2.has_value()); 77 if (a2.has_value()) 79 LIBCPP_ASSERT(!a2.has_value());
|
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/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()) { 80 if (mCellInfoRequestingNanoappInstanceId.has_value()) { 90 if (mCellInfoRequestingNanoappInstanceId.has_value()) {
|
| /frameworks/native/services/surfaceflinger/tests/unittests/ |
| EventThreadTest.cpp | 129 ASSERT_TRUE(args.has_value()); 135 ASSERT_TRUE(args.has_value()); 141 return callbackSet.has_value() ? std::get<0>(callbackSet.value()) : nullptr; 146 ASSERT_TRUE(args.has_value()); 154 ASSERT_TRUE(args.has_value()) << name << " did not receive an event for timestamp " 175 ASSERT_TRUE(args.has_value()); 189 EXPECT_FALSE(mVSyncSetEnabledCallRecorder.waitForUnexpectedCall().has_value()); 190 EXPECT_FALSE(mVSyncSetCallbackCallRecorder.waitForCall(0us).has_value()); 191 EXPECT_FALSE(mVSyncSetPhaseOffsetCallRecorder.waitForCall(0us).has_value()); 192 EXPECT_FALSE(mResyncCallRecorder.waitForCall(0us).has_value()); [all...] |
| EventControlThreadTest.cpp | 67 ASSERT_TRUE(args.has_value()); 89 EXPECT_FALSE(mVSyncSetEnabledCallRecorder.waitForUnexpectedCall().has_value()); 115 EXPECT_FALSE(mVSyncSetEnabledCallRecorder.waitForUnexpectedCall().has_value());
|
| /external/libmojo/mojo/public/cpp/bindings/lib/ |
| may_auto_lock.h | 20 : lock_(lock->has_value() ? &lock->value() : nullptr) { 42 : lock_(lock->has_value() ? &lock->value() : nullptr) {
|
| /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 | 128 constexpr bool has_value() const noexcept; 287 constexpr bool has_value() const noexcept 317 _LIBCPP_ASSERT(!has_value(), "__construct called for engaged __optional_storage"); 326 if (__opt.has_value()) 334 if (this->__engaged_ == __opt.has_value()) 393 constexpr bool has_value() const noexcept 408 _LIBCPP_ASSERT(!has_value(), "__construct called for engaged __optional_storage"); 419 if (__opt.has_value()) 427 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/darwin-x86/clang-4393122/include/c++/v1/ |
| optional | 128 constexpr bool has_value() const noexcept; 287 constexpr bool has_value() const noexcept 317 _LIBCPP_ASSERT(!has_value(), "__construct called for engaged __optional_storage"); 326 if (__opt.has_value()) 334 if (this->__engaged_ == __opt.has_value()) 393 constexpr bool has_value() const noexcept 408 _LIBCPP_ASSERT(!has_value(), "__construct called for engaged __optional_storage"); 419 if (__opt.has_value()) 427 if (has_value() == __opt.has_value()) [all...] |