| 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) |
no outgoing calls