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

Function get

include/boost/leaf/context.hpp:451–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449
450 template <class T>
451 BOOST_LEAF_CONSTEXPR T const * get(error_id err) const noexcept
452 {
453 detail::slot<T> const * e = detail::find_in_tuple<detail::slot<T>>(tup_);
454 return e ? e->has_value(err.value()) : nullptr;
455 }
456
457 template <class R, class... H>
458 BOOST_LEAF_CONSTEXPR R handle_error( error_id, H && ... ) const;

Callers 1

context.hppFile · 0.70

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected