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

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

#include <TypeTraits.hpp>

Public Types

using type = std::conditional_t< std::is_volatile_v< cv_qualified_type_t< From > >, add_type_volatile_t< To >, remove_type_volatile_t< To > >
 

Detailed Description

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

Applies or removes the volatile 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_volatileness_as< To, From >::type = std::conditional_t< std::is_volatile_v<cv_qualified_type_t<From> >, add_type_volatile_t<To>, remove_type_volatile_t<To> >

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