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 array

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


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

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

  // construct/copy/destruct
  array(T const *, std::size_t);

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

  // public data members
  static const int arity;


array public construct/copy/destruct

  1. array(T const * arr_, std::size_t size_);

array public member functions

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