#include #include int main() { std::cout << std::boolalpha << std::is_const_v << '\n' // false << std::is_const_v << '\n' // true << std::is_const_v /*false*/ << " because the pointer itself can be changed but not the int pointed at\n" << std::is_const_v /*true*/ << " because the pointer itself can't be changed but the int pointed at can\n" << std::is_const_v << '\n' // false << std::is_const_v> << '\n' // true ; }