5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_FUNCTIONAL_IDENTITY_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_FUNCTIONAL_IDENTITY_HPP_
12#include "arene/base/stdlib_choice/forward.hpp"
29 constexpr auto operator()(T&& value)
const noexcept -> T&& {
A backport of the C++20 std::identity function object. It returns its input unchanged.
Definition identity.hpp:21
void is_transparent
Indicates that this function object can be used with transparent comparisons.
Definition identity.hpp:36
constexpr auto operator()(T &&value) const noexcept -> T &&
Returns the input value unchanged as if forwarded via std::forward.
Definition identity.hpp:29
Definition accumulate.hpp:37
Definition accumulate.hpp:36
constexpr auto forward(remove_reference_t< T > &value) noexcept -> T &&
Cast a value to an rvalue if T is an rvalue or rvalue reference, otherwise forward an lvalue referenc...
Definition forward.hpp:24