...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::array — Dataset view of an C array.
// In header: <boost/test/data/monomorphic/array.hpp> template<typename T> class array : public boost::unit_test::data::monomorphic::dataset< T > { public: // member classes/structs/unions struct iterator : public boost::unit_test::data::monomorphic::dataset< T >::iterator { // construct/copy/destruct explicit iterator(T const *, data::size_t); // public member functions virtual T const & operator*(); virtual void operator++(); }; enum @3 { arity = = 1 }; // construct/copy/destruct array(T const *, std::size_t); // public member functions virtual data::size_t size() const; virtual iter_ptr begin() const; };
array
public member functionsvirtual data::size_t size() const;Dataset size.
virtual iter_ptr begin() const;Iterator to use to iterate over this dataset.