Boost_array

1
2
#include "boost/array.hpp"
#include "boost/multi_array.hpp"
  1. Array: similar with STL vector

    1
    array< std::string, 3> a</pre>
  2. Multi-Array: refer to this for more details, similar with matlab matrix operation

    1
    2
    typedef boost::multi_array<double, 3> array_type;
    array_type A(boost::extents[3][4][2]);