MCPcopy Create free account
hub / github.com/ablab/spades / value_or

Function value_or

ext/include/boost/optional/optional.hpp:1341–1347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getFunction · 0.70
is_initializedMethod · 0.45

Tested by

no test coverage detected