Simple-Utility v2.3.1
Loading...
Searching...
No Matches
sl::type_constness_as< To, From > Struct Template Reference

Applies or removes the const qualification of To in regards of From. More...

#include <TypeTraits.hpp>

Public Types

using type = std::conditional_t< std::is_const_v< cv_qualified_type_t< From > >, add_type_const_t< To >, remove_type_const_t< To > >
 

Detailed Description

template<class To, class From>
struct sl::type_constness_as< To, From >

Applies or removes the const qualification of To in regards of From.

Template Parameters
ToQualification to be modified on.
FromQualification to be taken from.

Member Typedef Documentation

◆ type

template<class To , class From >
using sl::type_constness_as< To, From >::type = std::conditional_t< std::is_const_v<cv_qualified_type_t<From> >, add_type_const_t<To>, remove_type_const_t<To> >

The documentation for this struct was generated from the following file: