Home
last modified time | relevance | path

Searched refs:has_value_ (Results 1 - 5 of 5) sorted by relevance

/third_party/libabigail/include/
H A Dabg-cxx-compat.h40 bool has_value_;
44 optional() : has_value_(false), value_() {}
45 optional(const T& value) : has_value_(true), value_(value) {}
50 return has_value_;
56 if (!has_value_)
64 if (!has_value_)
88 has_value_ = true;
/third_party/node/deps/v8/include/v8-include/
H A Dv8-maybe.h34 V8_INLINE bool IsNothing() const { return !has_value_; } in IsNothing()
35 V8_INLINE bool IsJust() const { return has_value_; } in IsJust()
82 return has_value_ ? value_ : default_value; in FromMaybe()
95 Maybe() : has_value_(false) {} in Maybe()
96 explicit Maybe(const T& t) : has_value_(true), value_(t) {} in Maybe()
97 explicit Maybe(T&& t) : has_value_(true), value_(std::move(t)) {} in Maybe()
99 bool has_value_; member in v8::Maybe
/third_party/node/deps/v8/include/
H A Dv8-maybe.h31 V8_INLINE bool IsNothing() const { return !has_value_; } in IsNothing()
32 V8_INLINE bool IsJust() const { return has_value_; } in IsJust()
70 return has_value_ ? value_ : default_value; in FromMaybe()
83 Maybe() : has_value_(false) {} in Maybe()
84 explicit Maybe(const T& t) : has_value_(true), value_(t) {} in Maybe()
86 bool has_value_; member in v8::Maybe
/third_party/node/deps/v8/testing/
H A Dgmock-support.h19 Capture() : value_(), has_value_(false) {} in Capture()
22 bool has_value() const { return has_value_; } in has_value()
27 has_value_ = true; in SetValue()
32 bool has_value_; member in testing::Capture
/third_party/googletest/googlemock/test/
H A Dgmock-matchers-misc_test.cc678 : value_(std::move(value)), has_value_(true) {} in SampleOptional()
679 SampleOptional() : value_(), has_value_(false) {} in SampleOptional()
680 operator bool() const { return has_value_; } in operator bool()
685 bool has_value_; member in testing::gmock_matchers_test::__anon3004::SampleOptional

Completed in 6 milliseconds