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

With these std::type_traits checks on a type with an explicit constructor, what gets printed?

#include <type_traits> #include <iostream> struct Explicit { explicit Explicit(int) {} }; int main() { std::cout << std::is_constructible_v<Explicit, int> << "\n"; std::cout << std::is_convertible_v<int, Explicit> << "\n"; }