cmoon::copy_const


Defined in module <cmoon.type_traits>


template<class From, class To>
struct copy_const;


(1)

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

If std::is_const_v<From> is true, then member typedef type is std::add_const_t<To>, otherwise the member typedef type is std::remove_const_t<To>.

Helper variable template




template<class From, class To>
using copy_const_t = typename copy_const<From, To>::type;