10 #include <unordered_map> 14 extern std::unordered_map<std::type_index, std::function<std::string(std::any const&)>> __any_stringer__;
30 template<
class type_t>
32 auto it = __any_stringer__.find(std::type_index(
typeid(type_t)));
33 if (it != __any_stringer__.cend()) __any_stringer__.erase(it);
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains std::any type and std::bad_any_cast exception.
void unregister_any_stringer()
Unregister an any stringer method for a specified type.
Definition: unregister_any_stringer.h:31