Boost C++ Libraries 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.

Class template init_list

boost::unit_test::data::monomorphic::init_list — Dataset view of a C array.


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

template<typename T> 
class init_list {
  // types
  typedef T         sample;  
  typedef T const * iterator;

  enum @3 { arity = = 1 };

  // construct/copy/destruct
  init_list(std::initializer_list< T > &&);

  // public member functions
  data::size_t size() const;
  iterator begin() const;


init_list public construct/copy/destruct

  1. init_list(std::initializer_list< T > && il);
    Constructor swallows initializer_list.

init_list public member functions

  1. data::size_t size() const;
    dataset interface
  2. iterator begin() const;