Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
TEST
Function · 0.80
optional
Method · 0.80
flat_map_inl.h
File · 0.80
resize
Method · 0.80
Calls
no outgoing calls
Tested by
1
TEST
Function · 0.64