5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_UNIQUE_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_UNIQUE_HPP_
8#include "arene/base/algorithm/detail/traits.hpp"
10#include "arene/base/functional/detail/operator_equal.hpp"
79auto unique(I first, I last, P pred)
noexcept(
86 arene::base::algorithm_detail::iter_reference_t<I>,
94 if (!pred(*first, *iter)) {
147 arene::base::functional_detail::operator_equal_t&,
148 arene::base::algorithm_detail::iter_reference_t<I>,
149 arene::base::algorithm_detail::iter_reference_t<I>>>> =
nullptr>
Public export header for the constraints subpackage.
constexpr bool is_predicate_v
backport for the C++20 predicate concept
ARENE_NODISCARD constexpr auto next(Iterator itr, typename std::iterator_traits< Iterator >::difference_type steps=1) noexcept(noexcept(::arene::base::advance(itr, steps))) -> Iterator
Produces the Nth successor (or predecessor if steps is negative) of an iterator.
Definition next.hpp:38
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
constexpr bool is_move_assignable_v
determine if a type satisfies the MoveAssignable named requirement
auto unique(I first, I last, P pred) noexcept(//std::is_nothrow_copy_constructible_v< I > &&//noexcept(std::declval< I & >()==std::declval< I & >()) &&//noexcept(std::declval< I & >() !=std::declval< I & >()) &&//noexcept(++std::declval< I & >()) &&//noexcept(!std::declval< P & >()(*std::declval< I & >(), *std::declval< I & >())) &&//std::is_nothrow_assignable_v<//arene::base::algorithm_detail::iter_reference_t< I >,//std::remove_reference_t< arene::base::algorithm_detail::iter_reference_t< I > > && >//) -> I
removes consecutive elements in a range
Definition unique.hpp:79
constexpr auto move(T &&value) noexcept -> remove_reference_t< T > &&
Cast a value to an rvalue.
Definition move.hpp:30
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41
constexpr bool is_nothrow_assignable_v
Type trait to detect if an instance of To is assignable to from arguments of From without throwing.
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...
constexpr bool is_nothrow_copy_constructible_v
Type trait to detect if an instance of T is copy constructible without throwing.
typename remove_reference< T >::type remove_reference_t
An alias for T, but with top-level reference qualifiers removed.
Definition remove_reference.hpp:47