pstore2
Public Types | List of all members
pstore::inherit_const< T, R, RC > Struct Template Reference

Provides a member typedef inherit_const::type, which is defined as R const if T is a const type and R if T is non-const. More...

#include <inherit_const.hpp>

Public Types

using type = typename std::conditional< std::is_const< typename std::remove_reference< T >::type >::value, RC, R >::type
 If T is const, R const otherwise R.
 

Detailed Description

template<typename T, typename R, typename RC = R const>
struct pstore::inherit_const< T, R, RC >

Provides a member typedef inherit_const::type, which is defined as R const if T is a const type and R if T is non-const.

Template Parameters
TA type whose constness will determine the constness of inherit_const::type.
RThe result type.
RCThe const-result type.

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