1[/ 2 Copyright 2010 Neil Groves 3 Distributed under the Boost Software License, Version 1.0. 4 (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5/] 6[section:sliced sliced] 7 8[table 9 [[Syntax] [Code]] 10 [[Pipe] [`rng | boost::adaptors::sliced(n, m)`]] 11 [[Function] [`boost::adaptors::slice(rng, n, m)`]] 12] 13 14* [*Precondition:] `0 <= n && n <= m && m < distance(rng)` 15* [*Returns:] `make_range(rng, n, m)` 16* [*Range Category:] __random_access_range__ 17* [*Range Return Type:] `boost::sliced_range<decltype(rng)>` 18* [*Returned Range Category:] __random_access_range__ 19 20[section:sliced_example sliced example] 21[import ../../../test/adaptor_test/sliced_example.cpp] 22[sliced_example] 23[endsect] 24 25This would produce the output: 26`` 273,4,5, 28`` 29[endsect] 30 31 32