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

Forward declares boost::hana::unique. More...


 Namespace containing everything in the library.


constexpr auto boost::hana::unique
 Removes all consecutive duplicate elements from a Sequence.Given a Sequence and an optional binary predicate, unique returns a new sequence containing only the first element of every subrange of the original sequence whose elements are all equal. In other words, it turns a sequence of the form [a, a, b, c, c, c, d, d, d, a] into a sequence [a, b, c, d, a]. The equality of two elements is determined by the provided predicate, or by equal if no predicate is provided. More...

Detailed Description

Forward declares boost::hana::unique.