]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multi_array/test/vc_death.cpp
1 // Copyright 2002 The Trustees of Indiana University.
3 // Use, modification and distribution is subject to the Boost Software
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 // Boost.MultiArray Library
8 // Authors: Ronald Garcia
11 // See http://www.boost.org/libs/multi_array for documentation.
14 // index_bases - test of the index_base modifying facilities.
17 #include "boost/multi_array.hpp"
19 #include "boost/test/minimal.hpp"
21 #include "boost/array.hpp"
25 test_main(int,char*[])
27 typedef boost::multi_array
<double, 3> array
;
28 typedef array::array_view
<3>::type array_view
;
30 typedef array::extent_range erange
;
31 typedef array::index_range irange
;
33 array::extent_gen extents
;
34 array::index_gen indices
;
36 // Construct with nonzero bases
39 array
A(extents
[erange(1,4)][erange(2,5)][erange(3,6)]);
40 array_view E
= A
[indices
[irange(1,2)][irange(1,2)][irange(1,2)]];
43 return boost::exit_success
;