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

Function activate

include/boost/leaf/context.hpp:409–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407 }
408
409 BOOST_LEAF_CONSTEXPR void activate() noexcept
410 {
411 using namespace detail;
412 BOOST_LEAF_ASSERT(!is_active());
413#if !defined(BOOST_LEAF_NO_THREADS) && !defined(NDEBUG)
414 thread_id_ = std::this_thread::get_id();
415#endif
416#if BOOST_LEAF_CFG_CAPTURE
417 context_base::link();
418#endif
419 tuple_for_each<std::tuple_size<Tup>::value,Tup>::activate(tup_);
420 is_active_ = true;
421 }
422
423 BOOST_LEAF_CONSTEXPR void deactivate() noexcept
424 {

Callers 1

activateMethod · 0.70

Calls 1

is_activeFunction · 0.85

Tested by

no test coverage detected