Searched refs:has_value_ (Results 1 – 4 of 4) sorted by relevance
/external/webrtc/webrtc/base/ |
D | optional.h | 65 Optional() : has_value_(false) {} in Optional() 68 explicit Optional(const T& val) : value_(val), has_value_(true) {} in Optional() 69 explicit Optional(T&& val) : value_(std::move(val)), has_value_(true) {} in Optional() 75 : value_(std::move(m.value_)), has_value_(m.has_value_) {} in Optional() 82 has_value_ = m.has_value_; 89 swap(m1.has_value_, m2.has_value_); in swap() 93 explicit operator bool() const { return has_value_; } 97 RTC_DCHECK(has_value_); 101 RTC_DCHECK(has_value_); 105 RTC_DCHECK(has_value_); [all …]
|
/external/v8/testing/ |
D | gmock-support.h | 19 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_; variable
|
/external/v8/src/compiler/ |
D | node-matchers.h | 55 : NodeMatcher(node), value_(), has_value_(opcode() == kOpcode) { in ValueMatcher() 56 if (has_value_) { in ValueMatcher() 61 bool HasValue() const { return has_value_; } in HasValue() 69 bool has_value_; member 78 has_value_(opcode() == IrOpcode::kInt32Constant) { in ValueMatcher() 79 if (has_value_) { in ValueMatcher() 87 : NodeMatcher(node), value_(), has_value_(false) { in ValueMatcher() 90 has_value_ = true; in ValueMatcher() 93 has_value_ = true; in ValueMatcher() 101 : NodeMatcher(node), value_(), has_value_(false) { in ValueMatcher() [all …]
|
/external/v8/include/ |
D | v8.h | 7645 V8_INLINE bool IsNothing() const { return !has_value_; } in IsNothing() 7646 V8_INLINE bool IsJust() const { return has_value_; } in IsJust() 7663 return has_value_ ? value_ : default_value; in FromMaybe() 7676 Maybe() : has_value_(false) {} in Maybe() 7677 explicit Maybe(const T& t) : has_value_(true), value_(t) {} in Maybe() 7679 bool has_value_; variable
|