MCPcopy Create free account
hub / github.com/boostorg/leaf / unload

Method unload

include/boost/leaf/error.hpp:495–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493
494 template <class E>
495 inline void slot<E>::unload( int err_id ) noexcept(!BOOST_LEAF_CFG_CAPTURE)
496 {
497 BOOST_LEAF_ASSERT(err_id);
498 if( this->key() != err_id )
499 return;
500 if( impl * p = get_slot<E>() )
501 if( !p->has_value(err_id) )
502 *p = std::move(*this);
503 }
504
505 template <class E>
506 BOOST_LEAF_CONSTEXPR inline int load_slot( int err_id, E && e ) noexcept(!BOOST_LEAF_CFG_CAPTURE)

Callers 10

mainFunction · 0.45
mainFunction · 0.45
unload_resultFunction · 0.45
try_handle_someFunction · 0.45
try_catch_Function · 0.45
type try_handle_someMethod · 0.45
try_catchFunction · 0.45
unloadMethod · 0.45
enforce_value_stateFunction · 0.45
unloadFunction · 0.45

Calls

no outgoing calls

Tested by 2

mainFunction · 0.36
mainFunction · 0.36