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 for the latest Boost documentation.
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;

  enum @6 { arity = = 1 };

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

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

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