/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Library/boost/libs/multi_array/test/vc_death.cpp
44 строки
1 KB
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
// Copyright 2002 The Trustees of Indiana University. // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // Boost.MultiArray Library // Authors: Ronald Garcia // Jeremy Siek // Andrew Lumsdaine // See http://www.boost.org/libs/multi_array for documentation. // // index_bases - test of the index_base modifying facilities. // #include <boost/multi_array.hpp> #include <boost/core/lightweight_test.hpp> #include <boost/array.hpp> #include <vector> #include <iostream> int main() { typedef boost::multi_array<double, 3> array; typedef array::array_view<3>::type array_view; typedef array::extent_range erange; typedef array::index_range irange; array::extent_gen extents; array::index_gen indices; // Construct with nonzero bases { array A(extents[erange(1,4)][erange(2,5)][erange(3,6)]); array_view E = A[indices[irange(1,2)][irange(1,2)][irange(1,2)]]; } return boost::report_errors(); }