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

Header <boost/test/data/monomorphic/grid.hpp>

Defines monomorphic dataset n+m dimentional *. Samples in this dataset is grid of elements in DS1 and DS2. There will be total |DS1| * |DS2| samples.

namespace boost {
  namespace unit_test {
    namespace data {
      namespace monomorphic {
        template<typename DS1, typename DS2> class grid;

        template<typename DS1, typename DS2> struct is_dataset<grid< DS1, DS2 >>;
        // <purpose>Grid operation. </purpose>
        template<typename DS1, typename DS2> 
          boost::lazy_enable_if_c< is_dataset< DS1 >::value &&is_dataset< DS2 >::value, result_of::grid< mpl::identity< DS1 >, mpl::identity< DS2 > >>::type 
          operator*(DS1 && ds1, DS2 && ds2);
        template<typename DS1, typename DS2> 
          boost::lazy_enable_if_c< is_dataset< DS1 >::value &&!is_dataset< DS2 >::value, result_of::grid< mpl::identity< DS1 >, data::result_of::make< DS2 > >>::type 
          operator*(DS1 && ds1, DS2 && ds2);
        template<typename DS1, typename DS2> 
          boost::lazy_enable_if_c<!is_dataset< DS1 >::value &&is_dataset< DS2 >::value, result_of::grid< data::result_of::make< DS1 >, mpl::identity< DS2 > >>::type 
          operator*(DS1 && ds1, DS2 && ds2);
        namespace result_of {
          template<typename DS1Gen, typename DS2Gen> struct grid;
        }
      }
    }
  }
}

PrevUpHomeNext