...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::unit_test::data::monomorphic::xrange_t — Generator for the range sequences.
// In header: <boost/test/data/monomorphic/generators/xrange.hpp> template<typename SampleType, typename StepType = SampleType> class xrange_t { public: // types typedef SampleType sample; // construct/copy/destruct xrange_t(SampleType const &, StepType const &, data::size_t); // public member functions data::size_t capacity() const; SampleType next(); void reset(); };
This class implements the generator concept (see boost::unit_test::data::monomorphic::generated_by) for implementing a range like sequence of numbers.
xrange_t
public
construct/copy/destructxrange_t(SampleType const & begin_, StepType const & step_, data::size_t size_);