MCPcopy Create free account
hub / github.com/apache/brpc / has_value

Method has_value

src/butil/containers/optional.h:309–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307 explicit operator bool() const { return _engaged; }
308
309 bool has_value() const { return _engaged; }
310
311 // Returns the contained value if the `optional` is not empty,
312 // otherwise throws `bad_optional_access`.

Callers 4

TESTFunction · 0.80
optionalMethod · 0.80
flat_map_inl.hFile · 0.80
resizeMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64