sparrow 1.0.0
|
Conditionally adds const to a type. More...
#include <mp_utils.hpp>
Public Types | |
using | type = std::conditional_t<is_const, const T, T> |
Conditionally adds const to a type.
This utility allows conditional const-qualification based on a boolean template parameter, with special handling for reference types.
T | Type to potentially const-qualify |
is_const | Whether to add const qualification |
Definition at line 778 of file mp_utils.hpp.
using sparrow::mpl::constify< T, is_const >::type = std::conditional_t<is_const, const T, T> |
Definition at line 780 of file mp_utils.hpp.