Boost.Hana  1.6.0
Your standard library for metaprogramming
slice.hpp File Reference

Forward declares boost::hana::slice and boost::hana::slice_c. More...

Namespaces

 boost::hana
 Namespace containing everything in the library.
 

Variables

constexpr auto boost::hana::slice
 Extract the elements of a Sequence at the given indices.Given an arbitrary sequence of indices, slice returns a new sequence of the elements of the original sequence that appear at those indices. In other words,. More...
 
template<std::size_t from, std::size_t to>
constexpr auto boost::hana::slice_c
 Shorthand to slice a contiguous range of elements.slice_c is simply a shorthand to slice a contiguous range of elements. In particular, slice_c<from, to>(xs) is equivalent to slice(xs, range_c<std::size_t, from, to>), which simply slices all the elements of xs contained in the half-open interval delimited by [from, to). Like for slice, the indices used with slice_c are 0-based and they must be in the bounds of the sequence being sliced. More...
 

Detailed Description

Forward declares boost::hana::slice and boost::hana::slice_c.