93 #ifndef PSTORE_SUPPORT_INHERIT_CONST_HPP 94 #define PSTORE_SUPPORT_INHERIT_CONST_HPP 96 #include <type_traits> 107 template <
typename T,
typename R,
typename RC = R const>
111 typename std::conditional<std::is_const<typename std::remove_reference<T>::type>::value,
121 "int const -> bool const");
126 "int const & -> bool const");
131 "int const && -> bool const");
133 #endif // PSTORE_SUPPORT_INHERIT_CONST_HPP Definition: nonpod2.cpp:40
Provides a member typedef inherit_const::type, which is defined as R const if T is a const type and R...
Definition: inherit_const.hpp:108
typename std::conditional< std::is_const< typename std::remove_reference< T >::type >::value, RC, R >::type type
If T is const, R const otherwise R.
Definition: inherit_const.hpp:112