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

Function value_or

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

Source from the content-addressed store, hash-verified

1338#ifndef BOOST_NO_CXX11_REF_QUALIFIERS
1339 template <class U>
1340 value_type value_or ( U&& v ) const&
1341 {
1342 if (this->is_initialized())
1343 return get();
1344 else
1345 return boost::forward<U>(v);
1346 }
1347
1348 template <class U>
1349 value_type value_or ( U&& v ) &&

Callers

nothing calls this directly

Calls 3

getFunction · 0.70
moveFunction · 0.50
is_initializedMethod · 0.45

Tested by

no test coverage detected