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

Function peek

include/boost/leaf/handle_errors.hpp:257–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255
256 template <class E, class SlotsTuple>
257 BOOST_LEAF_CONSTEXPR inline
258 E const *
259 peek( SlotsTuple const & tup, error_info const & ei ) noexcept
260 {
261 if( error_id err = ei.error() )
262 {
263 if( E const * e = peek_tuple<E>::peek(tup, err) )
264 return e;
265#ifndef BOOST_LEAF_NO_EXCEPTIONS
266 else
267 return peek_exception<E const>::peek(ei);
268#endif
269 }
270 return nullptr;
271 }
272
273 template <class E, class SlotsTuple>
274 BOOST_LEAF_CONSTEXPR inline

Calls

no outgoing calls

Tested by

no test coverage detected