一呼百應, "one call, a hundred responses"
Loading...
Searching...
No Matches
std::detail Namespace Reference

Typedefs

template<typename T , typename U >
using override_ref_t = conditional_t<is_rvalue_reference_v<T>, remove_reference_t<U> &&, U &>
 
template<typename T , typename U >
using copy_const_t = conditional_t<is_const_v<remove_reference_t<T>>, U const, U>
 
template<typename T , typename U >
using forward_like_t = override_ref_t<T &&, copy_const_t<T, remove_reference_t<U>>>
 

Typedef Documentation

◆ copy_const_t

template<typename T , typename U >
using std::detail::copy_const_t = conditional_t<is_const_v<remove_reference_t<T>>, U const, U>

Definition at line 27 of file forward_like.hpp.

◆ forward_like_t

template<typename T , typename U >
using std::detail::forward_like_t = override_ref_t<T &&, copy_const_t<T, remove_reference_t<U>>>

Definition at line 30 of file forward_like.hpp.

◆ override_ref_t

template<typename T , typename U >
using std::detail::override_ref_t = conditional_t<is_rvalue_reference_v<T>, remove_reference_t<U> &&, U &>

Definition at line 24 of file forward_like.hpp.