xieite ::add_lref <>
Defined in header <xieite/trait/add_lref.hpp>
A shorter alias for
std ::add_lvalue_reference_t <>
, named consistently with other utilities in this library.Declaration
template <typename T >using add_lref =std ::add_lvalue_reference_t <T >;
Example
[View in Compiler Explorer]static_assert (std ::same_as <xieite ::add_lref <int >,int& >);static_assert (std ::same_as <xieite ::add_lref <int& >,int& >);static_assert (std ::same_as <xieite ::add_lref <int&& >,int& >);