cmoon::copy_volatile


Defined in module <cmoon.type_traits>


template<class From, class To>
struct copy_volatile;


(1)

Copies the volatile type attribute from type From to type To.

If std::is_volatile_v<From> is true, then member typedef type is std::add_volatile_t<To>, otherwise the member typedef type is std::remove_volatile_t<To>.

Helper variable template




template<class From, class To>
using copy_volatile_t = typename copy_volatile<From, To>::type;