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

Function value_or_eval

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

Source from the content-addressed store, hash-verified

1386#if (!defined BOOST_NO_CXX11_REF_QUALIFIERS) && (!defined BOOST_OPTIONAL_DETAIL_NO_RVALUE_REFERENCES)
1387 template <typename F>
1388 value_type value_or_eval ( F f ) const&
1389 {
1390 if (this->is_initialized())
1391 return get();
1392 else
1393 return f();
1394 }
1395
1396 template <typename F>
1397 value_type value_or_eval ( F f ) &&

Callers

nothing calls this directly

Calls 3

getFunction · 0.70
moveFunction · 0.50
is_initializedMethod · 0.45

Tested by

no test coverage detected