Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++type traits librarySingle-choice MCQ

What do these std::remove_const checks evaluate to?

#include <type_traits> #include <iostream> int main() { std::cout << std::is_same_v<std::remove_const_t<const int*>, const int*> << "\n"; std::cout << std::is_same_v<std::remove_const_t<int* const>, int*> << "\n"; }