9#ifndef STLAB_FUNCTIONAL_HPP
10#define STLAB_FUNCTIONAL_HPP
18#include <stlab/config.hpp>
26STLAB_VERSION_NAMESPACE_BEGIN()
47using unwrap_reference_t =
typename unwrap_reference<T>::type;
68auto unwrap(
const T& val) ->
const T& {
73auto unwrap(std::reference_wrapper<T>& val) -> T& {
78auto unwrap(
const std::reference_wrapper<T>& val) ->
const T& {
86STLAB_VERSION_NAMESPACE_END()
auto unwrap(T &val) -> T &
Unwraps val, forwarding through std::reference_wrapper when present.
Definition functional.hpp:63
Definition reverse.hpp:28
Definition functional.hpp:52
Type alias: T, or the referent type if T is std::reference_wrapper<U>.
Definition functional.hpp:37