Home
last modified time | relevance | path

Searched refs:has_value (Results 1 - 25 of 178) sorted by relevance

12345678

/third_party/skia/include/private/
H A DSkTOptional.h187 return this->has_value() ? **this : static_cast<T>(std::forward<U>(value)); in value_or()
192 return this->has_value() ? std::move(**this) : static_cast<T>(std::forward<U>(value)); in value_or()
195 bool has_value() const { in has_value() function in skstd::optional
200 return this->has_value(); in operator bool()
224 return (a.has_value() != b.has_value()) ? false : in operator ==()
225 !a.has_value() ? true : in operator ==()
230 return (a.has_value() != b.has_value()) ? true : in operator !=()
231 !a.has_value() in operator !=()
[all...]
H A DSkTHash.h125 SkASSERT(s.has_value()); in remove()
141 if (fSlots[i].has_value()) { in foreach()
151 if (fSlots[i].has_value()) { in foreach()
213 if (fSlots[i].has_value()) { in firstPopulatedSlot()
223 if (fSlots[i].has_value()) { in nextPopulatedSlot()
232 SkASSERT(fSlots[i].has_value()); in slot()
273 if (s.has_value()) { in resize()
385 bool has_value() const { return hash != 0; } in has_value() function
386 explicit operator bool() const { return this->has_value(); } in operator bool()
387 bool empty() const { return !this->has_value(); } in empty()
[all...]
/third_party/libabigail/tests/
H A Dtest-cxx-compat.cc21 REQUIRE_FALSE(opt1.has_value());
24 REQUIRE(opt2.has_value());
28 REQUIRE(opt3.has_value());
35 REQUIRE_FALSE(opt.has_value());
46 REQUIRE_FALSE(opt.has_value());
62 REQUIRE(opt.has_value());
/third_party/libabigail/include/
H A Dabg-cxx-compat.h48 has_value() const noexcept
93 explicit operator bool() const noexcept { return has_value(); }
100 if (!lhs.has_value() && !rhs.has_value())
102 if (!lhs.has_value() || !rhs.has_value())
/third_party/node/deps/v8/src/base/
H A Doptional.h592 constexpr bool has_value() const { return storage_.is_populated_; } in has_value() function in v8::base::Optional
688 // while bool() casting is replaced by has_value() to meet the chromium
692 if (lhs.has_value() != rhs.has_value()) return false; in operator ==()
693 if (!lhs.has_value()) return true; in operator ==()
699 if (lhs.has_value() != rhs.has_value()) return true; in operator !=()
700 if (!lhs.has_value()) return false; in operator !=()
706 if (!rhs.has_value()) return false; in operator <()
707 if (!lhs.has_value()) retur in operator <()
[all...]
/third_party/node/deps/v8/src/compiler/
H A Daccess-info.cc119 dependencies, transition_map.has_value() in DataField()
121 : holder.has_value() ? holder->map().object() in DataField()
213 DCHECK_IMPLIES(kind == kDictionaryProtoAccessorConstant, name.has_value()); in PropertyAccessInfo()
234 DCHECK_IMPLIES(transition_map.has_value(), in PropertyAccessInfo()
255 if (!lhs.has_value()) return !rhs.has_value(); in OptionalRefEquals()
256 if (!rhs.has_value()) return false; in OptionalRefEquals()
385 if (access_info.has_value()) { in ComputeElementAccessInfos()
397 if (!access_info.has_value()) return false; in ComputeElementAccessInfos()
402 if (!map_ref.has_value()) continu in ComputeElementAccessInfos()
[all...]
H A Djs-context-specialization.cc147 if (!maybe_concrete.has_value()) { in ReduceJSLoadContext()
171 if (!maybe_value.has_value()) { in ReduceJSLoadContext()
210 if (!maybe_concrete.has_value()) { in ReduceJSStoreContext()
275 if (!maybe_context.has_value()) return NoChange(); in ReduceJSGetImportMeta()
279 if (!module.has_value()) return NoChange(); in ReduceJSGetImportMeta()
282 if (!import_meta.has_value()) return NoChange(); in ReduceJSGetImportMeta()
H A Djs-inlining-heuristic.cc33 if (!feedback_vector.has_value()) { in CanConsiderForInlining()
52 if (!feedback_vector_again.has_value()) { in CanConsiderForInlining()
129 DCHECK(!out.functions[0].has_value()); in CollectFunctions()
139 DCHECK(!out.functions[0].has_value()); in CollectFunctions()
191 if (!candidate.bytecode[i].has_value()) { in Reduce()
196 SharedFunctionInfoRef shared = candidate.functions[i].has_value() in Reduce()
199 candidate.can_inline_function[i] = candidate.bytecode[i].has_value(); in Reduce()
229 if (candidate.functions[i].has_value()) { in Reduce()
818 SharedFunctionInfoRef shared = candidate.functions[i].has_value() in PrintCandidates()
822 if (candidate.bytecode[i].has_value()) { in PrintCandidates()
[all...]
H A Dproperty-access-builder.cc128 if (holder.has_value()) { in ResolveHolder()
192 if (!holder.has_value()) { in TryFoldLoadConstantDataField()
215 return value.has_value() ? jsgraph()->Constant(*value) : nullptr; in TryFoldLoadConstantDataField()
307 if (field_map.has_value()) { in BuildLoadDataField()
/third_party/node/deps/v8/src/objects/
H A Dproperty-descriptor.h35 return desc->has_value() || desc->has_writable(); in IsDataDescriptor()
58 !has_value() && !has_get() && !has_set(); in is_empty()
62 return has_configurable() && has_enumerable() && !has_value() && in IsRegularAccessorProperty()
67 return has_configurable() && has_enumerable() && has_value() && in IsRegularDataProperty()
87 bool has_value() const { return !value_.is_null(); } in has_value() function in v8::internal::PropertyDescriptor
H A Dproperty-descriptor.cc106 (desc->has_value() || desc->has_writable())) { in ToPropertyDescriptorFastPath()
159 if (has_value()) { in ToObject()
289 (desc->has_value() || desc->has_writable())) { in ToPropertyDescriptor()
314 if (!desc->has_value()) { in CompletePropertyDescriptor()
354 PropertyDescriptorObject::HasValueBit::encode(has_value()) | in ToPropertyDescriptorObject()
360 if (has_value()) obj->set_value(*value_); in ToPropertyDescriptorObject()
/third_party/node/deps/v8/testing/
H A Dgmock-support.h22 bool has_value() const { return has_value_; } in has_value() function in testing::Capture
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()
/third_party/skia/tests/
H A DSkTOptionalTest.cpp16 REPORTER_ASSERT(r, !o.has_value()); in DEF_TEST()
22 REPORTER_ASSERT(r, !o.has_value()); in DEF_TEST()
49 REPORTER_ASSERT(r, o.has_value()); in DEF_TEST()
54 REPORTER_ASSERT(r, !o.has_value()); in DEF_TEST()
60 REPORTER_ASSERT(r, o.has_value()); in DEF_TEST()
63 REPORTER_ASSERT(r, !o.has_value()); in DEF_TEST()
71 REPORTER_ASSERT(r, !o.has_value()); in DEF_TEST()
116 if (o[index].has_value()) { in DEF_TEST()
278 REPORTER_ASSERT(r, o.has_value()); in DEF_TEST()
283 REPORTER_ASSERT(r, o.has_value()); in DEF_TEST()
[all...]
/third_party/skia/third_party/externals/tint/src/ast/
H A Doverride_decoration.cc27 : Base(pid, src), has_value(false), value(0) {} in OverrideDecoration()
32 : Base(pid, src), has_value(true), value(val) {} in OverrideDecoration()
43 if (has_value) { in Clone()
H A Doverride_decoration_test.cc27 EXPECT_TRUE(d->has_value); in TEST_F()
33 EXPECT_FALSE(d->has_value); in TEST_F()
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
H A Dany_exception_safety_test.cc43 if (a->has_value()) { in AnyInvariants()
58 if (a->has_value()) { in AnyInvariants()
80 if (!a->has_value()) { in AnyIsEmpty()
110 return testing::AssertionResult(ap->has_value() && in TEST()
133 return testing::AssertionResult{!ap->has_value()}; in TEST()
H A Doptional_exception_safety_test.cc57 if (optional.has_value() && ValueThrowsBadOptionalAccess(optional)) { in OptionalInvariants()
62 if (!optional.has_value() && !ValueThrowsBadOptionalAccess(optional)) { in OptionalInvariants()
72 if (optional.has_value()) { in OptionalInvariants()
88 if (optional.has_value()) { in CheckDisengaged()
100 if (!optional.has_value()) { in CheckEngaged()
131 // Test the basic guarantee plus test the result of optional::has_value() in TEST()
154 // Test the basic guarantee plus test the result of optional::has_value() in TEST()
199 // Test the basic guarantee plus test the result of optional::has_value() in TEST()
225 // Test the basic guarantee plus test the result of optional::has_value() in TEST()
H A Dany_test.cc97 static_assert(noexcept(std::declval<absl::any&>().has_value()), ""); in TEST()
112 EXPECT_FALSE(o.has_value()); in TEST()
114 EXPECT_TRUE(o.has_value()); in TEST()
116 EXPECT_FALSE(o.has_value()); in TEST()
613 EXPECT_TRUE(o4.has_value()); in TEST()
627 EXPECT_FALSE(o.has_value()); in TEST()
630 EXPECT_TRUE(o.has_value()); in TEST()
737 EXPECT_TRUE(target.has_value()); in TEST()
744 EXPECT_FALSE(target.has_value()); in TEST()
751 EXPECT_TRUE(target.has_value()); in TEST()
[all...]
/third_party/python/Python/
H A Dpathconfig.c258 int has_value = home && home[0]; in Py_SetPythonHome() local
266 if (has_value) { in Py_SetPythonHome()
272 if (has_value && _Py_path_config.home == NULL) { in Py_SetPythonHome()
281 int has_value = program_name && program_name[0]; in Py_SetProgramName() local
289 if (has_value) { in Py_SetProgramName()
295 if (has_value && _Py_path_config.program_name == NULL) { in Py_SetProgramName()
303 int has_value = program_full_path && program_full_path[0]; in _Py_SetProgramFullPath() local
311 if (has_value) { in _Py_SetProgramFullPath()
317 if (has_value && _Py_path_config.program_full_path == NULL) { in _Py_SetProgramFullPath()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/
H A Doptimization_test.cc83 absl::optional<bool> has_value(false); in TEST()
85 EXPECT_TRUE(ABSL_PREDICT_TRUE(has_value)); in TEST()
87 EXPECT_TRUE(ABSL_PREDICT_FALSE(has_value)); in TEST()
/third_party/node/deps/ada/
H A Dada.h2651 bool has_value() const { return this->m_has_val; } in has_value() function
2717 bool has_value() const { return this->m_has_val; } in has_value() function
2754 if (rhs.has_value()) { in expected_copy_base()
2792 if (rhs.has_value()) { in noexcept()
3434 if (rhs.has_value()) {
3449 if (rhs.has_value()) {
3463 if (rhs.has_value()) {
3477 if (rhs.has_value()) {
3511 if (has_value()) { in operator =()
3535 if (has_value()) { in operator =()
[all...]
/third_party/gn/src/gn/
H A Drust_project_writer.cc194 if (!edition.has_value()) { in AddTarget()
204 if (compiler_target.has_value()) in AddTarget()
258 if (sysroot.has_value()) { in WriteCrates()
286 if (gen_dir.has_value()) { in WriteCrates()
299 if (compiler_target.has_value()) { in WriteCrates()
338 if (proc_macro_target.has_value()) { in WriteCrates()
404 if (!rust_sysroot.has_value()) { in RenderJSON()
/third_party/skia/third_party/externals/abseil-cpp/absl/status/
H A Dstatus_test.cc318 EXPECT_TRUE(base.GetPayload(kUrl1).has_value()); in TEST()
320 EXPECT_TRUE(base.GetPayload(kUrl1).has_value()); in TEST()
321 EXPECT_FALSE(copy.GetPayload(kUrl1).has_value()); in TEST()
328 EXPECT_TRUE(base.GetPayload(kUrl1).has_value()); in TEST()
329 EXPECT_TRUE(copy.GetPayload(kUrl1).has_value()); in TEST()
333 EXPECT_FALSE(base.GetPayload(kUrl1).has_value()); in TEST()
334 EXPECT_TRUE(copy.GetPayload(kUrl1).has_value()); in TEST()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/
H A DServer.cpp134 if(req.breakpoints.has_value()) in Impl()
160 if(req.source.name.has_value()) in Impl()
425 if(req.frameId.has_value()) in Impl()
578 if(source.sourceReference.has_value()) in file()
588 if(source.path.has_value()) in file()
603 if(source.name.has_value()) in file()
/third_party/mesa3d/src/imgui/
H A Dimgui_memory_editor.h517 bool has_value = DataPreviewAddr != (size_t)-1; in DrawContents() local
518 if (has_value) in DrawContents()
520 ImGui::Text("Dec"); ImGui::SameLine(x); ImGui::TextUnformatted(has_value ? buf : "N/A"); in DrawContents()
521 if (has_value) in DrawContents()
523 ImGui::Text("Hex"); ImGui::SameLine(x); ImGui::TextUnformatted(has_value ? buf : "N/A"); in DrawContents()
524 if (has_value) in DrawContents()
526 ImGui::Text("Bin"); ImGui::SameLine(x); ImGui::TextUnformatted(has_value ? buf : "N/A"); in DrawContents()

Completed in 29 milliseconds

12345678