MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / get_value_or

Function get_value_or

extern/boost/boost/optional/optional.hpp:1273–1273  ·  view source on GitHub ↗

Returns a copy of the value if this is initialized, 'v' otherwise

Source from the content-addressed store, hash-verified

1271
1272 // Returns a copy of the value if this is initialized, 'v' otherwise
1273 reference_const_type get_value_or ( reference_const_type v ) const { return this->is_initialized() ? get() : v ; }
1274 reference_type get_value_or ( reference_type v ) { return this->is_initialized() ? get() : v ; }
1275
1276 // Returns a pointer to the value if this is initialized, otherwise,

Callers

nothing calls this directly

Calls 2

getFunction · 0.70
is_initializedMethod · 0.45

Tested by

no test coverage detected