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 tolerance

boost::test_tools::tolerance

Synopsis

// In header: <boost/test/tools/detail/tolerance_manip.hpp>


template<typename FPT> unspecified tolerance(FPT v);
template<typename FPT> 
  unspecified tolerance(fpc::percent_tolerance_t< FPT > v);
unspecified tolerance();

Description

Tolerance manipulator

These functions return a manipulator that can be used in conjunction with BOOST_TEST in order to specify the tolerance with which floating point comparisons are made.


PrevUpHomeNext