6#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_UNWRAP_REFERENCE_HPP_
7#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_UNWRAP_REFERENCE_HPP_
12#include "arene/base/stdlib_choice/decay.hpp"
13#include "arene/base/stdlib_choice/reference_wrapper_fwd.hpp"
19namespace unwrap_reference_detail {
25template <
class ReferenceWrapper>
26using reference_type_t =
typename ReferenceWrapper::type&;
36 unwrap_reference_detail::reference_type_t,
Backport of std::unwrap_ref_decay from C++20.
Definition unwrap_reference.hpp:62
unwrap_ref_decay_t< T > type
The decayed type T , subsequently unwrapped if applicable.
Definition unwrap_reference.hpp:65
Definition accumulate.hpp:37
constexpr bool is_instantiation_of_v
Definition is_instantiation_of.hpp:16
T conditional_identity_t
an identity alias intended for use as a no-op branch in conditional_apply_t
Definition conditional.hpp:43
conditional_apply_t< is_instantiation_of_v< T, std::reference_wrapper >, unwrap_reference_detail::reference_type_t, conditional_identity_t, T > unwrap_reference_t
Backport of std::unwrap_reference_t from C++20.
Definition unwrap_reference.hpp:34
unwrap_reference_t< std::decay_t< T > > unwrap_ref_decay_t
Backport of std::unwrap_ref_decay_t from C++20.
Definition unwrap_reference.hpp:55
typename static_if< B >::template then_apply_else_apply< OnTrue, OnFalse, Args... > conditional_apply_t
lazily apply one of two template aliases based on a boolean condition
Definition conditional.hpp:73
Definition accumulate.hpp:36
Backport of std::unwrap_reference from C++20.
Definition unwrap_reference.hpp:45
unwrap_reference_t< T > type
The result type.
Definition unwrap_reference.hpp:47