Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Clang-IsBaseOf
#include <type_traits> #include <cstdint> struct A { }; struct B : A { }; template <typename T, typename U> struct IsBaseOf { constexpr static bool Testment(T* t) { return true; } constexpr static bool Testment(...) { return false; } constexpr static bool value = IsBaseOf<T,U>::Testment(static_cast<U*>(nullptr)); }; int main() { static_assert(IsBaseOf<A, B>::value, "Pass"); }
run
|
edit
|
history
|
help
0
Throttle Example in C++ (80 requests every 2 seconds)
STL stack
Code Rush Game Group 1
Fundamentos de programación. Tema 7. Ejercicio 6.
Dynamically allocated array in unique_ptr with custom deleter.
Heap: insert and deleteMin() Implementations
Integer conversions
my override
MPL 2-0
hello,world !ssn2019