Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
SO typeindex pretty_name
#include <boost/type_index.hpp> #include <iostream> class MyObject { public: virtual ~MyObject() {} }; struct Derived : MyObject {}; int main() { MyObject o; Derived d; std::cout << boost::typeindex::type_id<MyObject>().pretty_name() << "\n"; std::cout << boost::typeindex::type_id<Derived>().pretty_name() << "\n"; MyObject& r = d; std::cout << boost::typeindex::type_id_runtime(r).pretty_name() << "\n"; }
run
|
edit
|
history
|
help
0
map_file_mangling
upper_bound With binary_function Visual Studio 2008 Bug?
cv5
operator/function lookup
variable template not supported
std::current_exception makes a copy
Printf %px test
Zero length array as a class member
Is a Union Member's Destructor Called
Test