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/for_each_sample.hpp>

Defines for_each_sample algorithm.

namespace boost {
  namespace unit_test {
    namespace data {
      template<typename Action, typename T> 
        void invoke_action(Action const & action, T && arg, std::false_type);
      template<typename Action, typename T, std::size_t ... I> 
        void invoke_action_impl(Action const & action, T && args, 
                                index_sequence< I... > const &);
      template<typename Action, typename T> 
        void invoke_action(Action const & action, T && args, std::true_type);
      template<typename DataSet, typename Action> 
        std::enable_if< monomorphic::is_dataset< DataSet >::value, void >::type 
        for_each_sample(DataSet const & samples, Action const & act, 
                        data::size_t number_of_samples = BOOST_TEST_DS_INFINITE_SIZE);
      template<typename DataSet, typename Action> 
        std::enable_if<!monomorphic::is_dataset< DataSet >::value, void >::type 
        for_each_sample(DataSet && samples, Action const & act, 
                        data::size_t number_of_samples = BOOST_TEST_DS_INFINITE_SIZE);
    }
  }
}

PrevUpHomeNext