Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
MSVC alias template
template<typename> struct if_int; template<> struct if_int<int> { using type = void; }; template<typename T> using if_int_t = typename if_int<typename T::type>::type; using invalid_type = if_int_t<void>; #include <iostream> int main() { std::cout << typeid(invalid_type).name() //<< "\nsizeof = " << sizeof(invalid_type) << "\n"; }
run
|
edit
|
history
|
help
0
LinkedList
Overload
Computing factorial of an integer with recursion and iteration [EDIT]
Test
GetFinalPathNameByHandle Behaviour
unresolved external symbol
Time Zone Registry
Copy elision sample modern C++
Implements.cpp
C++ standard library formatted input hexadecimal float without prefix or exponent test case