Lines Matching full:name
26 static string demangle(const char* name);
32 virtual string name() = 0;
39 string name() override { return "DerivedA"; } in name() function in DerivedA
45 string name() override { return "DerivedB"; } in name() function in DerivedB
61 /* Demonstrate typeid().name() */ in app_main()
63 cout << "Type name of std::cout is: " << demangle(typeid(std::cout).name()) << endl << '\t'; in app_main()
64 cout << "Type name of std::cin is: " << demangle(typeid(std::cin).name()) << endl << '\t'; in app_main()
65 cout << "Type of app_main is: " << demangle(typeid(app_main).name()) << endl << '\t'; in app_main()
67 cout << "Type name of a lambda function is: " << demangle(typeid(sum).name()) << endl << endl; in app_main()
74 cout << "obj->name() is: " << obj->name() << endl << '\t'; in app_main()
75 cout << "typeid(*obj).name() is: " << demangle(typeid(*obj).name()) << endl << '\t'; in app_main()
87 /* Helper function which converts typeid().name() to a human-readable type name */
88 static std::string demangle(const char* name) in demangle() argument
91 char* result = abi::__cxa_demangle(name, NULL, NULL, &status); in demangle()
96 str_result = name; in demangle()