...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::singleton — Models a single element data set.
// In header: <boost/test/data/monomorphic/singleton.hpp> template<typename T> class singleton { public: // member classes/structs/unions struct iterator { // construct/copy/destruct explicit iterator(singleton< T > const *); // public member functions sample const & operator *() const; void operator++(); }; // construct/copy/destruct explicit singleton(T &&); singleton(singleton &&); // public member functions T const & value() const; data::size_t size() const; iterator begin() const; // public data members static const int arity; };
singleton
public
construct/copy/destructexplicit singleton(T && value);Constructor.
singleton(singleton && s);Move constructor.
singleton
public member functionsT const & value() const;Value access method.
data::size_t size() const;dataset interface
iterator begin() const;