Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Function clear_context

boost::unit_test::framework::clear_context — Erases context frame (when test exits context scope)


// In header: <boost/test/framework.hpp>

void clear_context(int context_id = -1);


If context_id is passed clears that specific context frame identified by this id, otherwise clears all non sticky contexts.