Boost.Hana  1.3.0
Your standard library for metaprogramming
intersperse.hpp File Reference

Forward declares boost::hana::intersperse. More...

Namespaces

 boost::hana
 Namespace containing everything in the library.
 

Variables

constexpr auto boost::hana::intersperse
 Insert a value between each pair of elements in a finite sequence.Given a finite Sequence xs with a linearization of [x1, x2, ..., xn], intersperse(xs, z) is a new sequence with a linearization of [x1, z, x2, z, x3, ..., xn-1, z, xn]. In other words, it inserts the z element between every pair of elements of the original sequence. If the sequence is empty or has a single element, intersperse returns the sequence as-is. In all cases, the sequence must be finite. More...
 

Detailed Description

Forward declares boost::hana::intersperse.