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 array

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

Synopsis

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

template<typename T> 
class array {
public:
  // 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;
};

Description

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;

PrevUpHomeNext