Boost C++ Libraries

...one 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.
PrevUpHomeNext

Function template get

boost::unit_test::framework::get — This function template provides access to a typed test unit by id.

Synopsis

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


template<typename UnitType> UnitType & get(test_unit_id id);

Description

It will throw if you specify incorrect test unit type

Parameters:

id

id of test unit to get

Template Parameters:

UnitType

compile time type of test unit to get (test_suite or test_case)


PrevUpHomeNext