...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::join — Defines a new dataset from the concatenation of two datasets.
// In header: <boost/test/data/monomorphic/join.hpp> template<typename DS1, typename DS2> class join : public boost::unit_test::data::monomorphic::dataset< boost::decay< DS1 >::type::data_type > { public: // member classes/structs/unions struct iterator : public boost::unit_test::data::monomorphic::dataset< T >::iterator { // construct/copy/destruct explicit iterator(iter_ptr, iter_ptr, data::size_t); // public member functions virtual T const & operator*(); virtual void operator++(); }; enum @7 { arity = = boost::decay<DS1>::type::arity }; // construct/copy/destruct join(DS1 &&, DS2 &&); join(join &&); // public member functions virtual data::size_t size() const; virtual iter_ptr begin() const; };
The size of the resulting dataset is the sum of the two underlying datasets. The arity of the datasets should match.
join
public member functionsvirtual data::size_t size() const;Dataset size.
virtual iter_ptr begin() const;Iterator to use to iterate over this dataset.