Boost.Hana: boost/hana/fwd/unique.hpp File Reference

| Boost.Hana 1.0.0 Your standard library for metaprogramming |

Namespaces | Variables
unique.hpp File Reference

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

## Namespaces
| boost
| boost::hana
| Namespace containing everything in the library.

## Variables
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`.

Copyright
  Louis Dionne 2013-2016 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)