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

Class template join

boost::unit_test::data::monomorphic::join — Defines a new dataset from the concatenation of two datasets.

Synopsis

// In header: <boost/test/data/monomorphic/join.hpp>

template<typename DataSet1, typename DataSet2> 
class join {
public:
  // types
  typedef typename std::conditional< std::is_reference< iter1_ret >::value &&std::is_reference< iter2_ret >::value &&std::is_same< iter1_ret, iter2_ret >::value, iter1_ret, typename std::remove_reference< iter1_ret >::type >::type sample_t;

  // member classes/structs/unions

  struct iterator {

    // public member functions
    explicit iterator(dataset1_iter &&, dataset2_iter &&, data::size_t);
    sample_t operator*() const;
    void operator++();
  };

  // public member functions
  join(DataSet1 &&, DataSet2 &&);
  join(join &&);
  data::size_t size() const;
  iterator begin() const;

  // public data members
  static const int arity;
};

Description

The size of the resulting dataset is the sum of the two underlying datasets. The arity of the datasets should match.

join public member functions

  1. join(DataSet1 && ds1, DataSet2 && ds2);
    Constructor.
  2. join(join && j);
    Move constructor.
  3. data::size_t size() const;
    dataset interface
  4. iterator begin() const;

PrevUpHomeNext