Home
last modified time | relevance | path

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

1234

/third_party/skia/include/private/
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
200 return this->has_value();
224 return (a.has_value() != b.has_value()) ? false :
225 !a.has_value() ? true :
230 return (a.has_value() != b.has_value()) ? true :
231 !a.has_value() ? false :
236 return !b.has_value() ? false :
237 !a.has_value() ? true :
[all …]
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(); }
387 bool empty() const { return !this->has_value(); } in empty()
/third_party/libabigail/tests/
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/
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/flatbuffers/tests/cpp17/
Dtest_cpp17.cpp161 TEST_ASSERT(result.has_value()); in StringifyAnyFlatbuffersTypeTest()
215 TEST_ASSERT(!opts->maybe_f32().has_value()); in OptionalScalarsTest()
216 TEST_ASSERT(opts->maybe_i8().has_value()); in OptionalScalarsTest()
219 TEST_ASSERT(opts->maybe_i8().has_value()); in OptionalScalarsTest()
226 TEST_ASSERT(!obj.maybe_f32.has_value()); in OptionalScalarsTest()
227 TEST_ASSERT(obj.maybe_i8.has_value() && obj.maybe_i8.value() == 3); in OptionalScalarsTest()
235 TEST_ASSERT(opts->maybe_i8().has_value()); in OptionalScalarsTest()
237 TEST_ASSERT(opts->maybe_i32().has_value()); in OptionalScalarsTest()
/third_party/skia/tests/
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/
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()
Doverride_decoration_test.cc27 EXPECT_TRUE(d->has_value); in TEST_F()
33 EXPECT_FALSE(d->has_value); in TEST_F()
Doverride_decoration.h49 const bool has_value; variable
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
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()
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()
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 …]
Doptional_test.cc177 static_assert(!cempty.has_value(), ""); in TEST()
186 static_assert(!cempty.has_value(), ""); in TEST()
862 EXPECT_FALSE(opt.has_value()); in TEST()
865 EXPECT_TRUE(opt.has_value()); in TEST()
868 EXPECT_FALSE(opt.has_value()); in TEST()
872 EXPECT_FALSE(opt.has_value()); in TEST()
875 static_assert(!empty.has_value(), ""); in TEST()
877 static_assert(nonempty.has_value(), ""); in TEST()
960 static_assert(opt.has_value(), ""); in TEST()
966 EXPECT_TRUE(opt.has_value()); in TEST()
[all …]
Dany.h214 : obj_(other.has_value() ? other.obj_->Clone() in any()
349 bool has_value() const noexcept { return obj_ != nullptr; } in has_value() function
355 if (has_value()) { in type()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/
Doptimization_test.cc83 absl::optional<bool> has_value(false); in TEST() local
85 EXPECT_TRUE(ABSL_PREDICT_TRUE(has_value)); in TEST()
87 EXPECT_TRUE(ABSL_PREDICT_FALSE(has_value)); in TEST()
/third_party/cef/libcef/renderer/chrome/
Dchrome_content_renderer_client_cef.cc51 if (is_windowless.has_value() && *is_windowless) { in RenderFrameCreated()
62 if (is_windowless.has_value() && *is_windowless) { in WebViewCreated()
/third_party/skia/third_party/externals/abseil-cpp/absl/status/
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/gn/src/gn/
Drust_project_writer.cc293 if (!edition.has_value()) { in AddTarget()
303 if (compiler_target.has_value()) in AddTarget()
384 if (gen_dir.has_value()) { in WriteCrates()
397 if (compiler_target.has_value()) { in WriteCrates()
436 if (proc_macro_target.has_value()) { in WriteCrates()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/
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/
Dimgui_memory_editor.h517 bool has_value = DataPreviewAddr != (size_t)-1; member
518 if (has_value)
520 ImGui::Text("Dec"); ImGui::SameLine(x); ImGui::TextUnformatted(has_value ? buf : "N/A");
521 if (has_value)
523 ImGui::Text("Hex"); ImGui::SameLine(x); ImGui::TextUnformatted(has_value ? buf : "N/A");
524 if (has_value)
526 ImGui::Text("Bin"); ImGui::SameLine(x); ImGui::TextUnformatted(has_value ? buf : "N/A");
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
DGPUBuffer.cpp72 uint64_t s = size.has_value() ? size.value() : (desc_.size - offset); in mapAsync()
117 uint64_t s = size.has_value() ? size.value() : (desc_.size - offset); in getMappedRange()
DConverter.h295 if (in.has_value()) { in Convert()
308 if (in.has_value()) { in Convert()
374 if (!in.has_value()) { in Convert()
/third_party/skia/src/sksl/ir/
DSkSLFunctionCall.cpp109 SkASSERT(arg0Value.has_value()); in coalesce_n_way_vector()
115 SkASSERT(arg1Value.has_value()); in coalesce_n_way_vector()
184 SkASSERT(leftValue.has_value()); in optimize_comparison()
185 SkASSERT(rightValue.has_value()); in optimize_comparison()
221 SkASSERT(arg0Value.has_value()); in evaluate_n_way_intrinsic()
227 SkASSERT(arg1Value.has_value()); in evaluate_n_way_intrinsic()
234 SkASSERT(arg2Value.has_value()); in evaluate_n_way_intrinsic()
DSkSLConstructor.cpp201 if (!left.has_value()) { in compareConstant()
205 if (!right.has_value()) { in compareConstant()
/third_party/skia/experimental/graphite/src/
DDrawPass.cpp194 if (draw.fPaintParams.has_value()) { in Make()
211 const bool performsShading = draw.fPaintParams.has_value() && step->performsShading(); in Make()

1234