I just want to know if there is already one provided by the standard. I know it\'s easy to make one yourself
// for C++03, use and st
std::decay, I believe, performs this functionality.
I prefer combining the two functionalities since it describes exactly what the intention is:
C++11 std::remove_cv<std::remove_reference<T>::type>::type
std::remove_cv<std::remove_reference<T>::type>::type
C++14 std::remove_cv_t<std::remove_reference_t<T>>
std::remove_cv_t<std::remove_reference_t<T>>
C++20 std::remove_cvref_t<T>
std::remove_cvref_t<T>