xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
unregister_any_stringer.hpp
Go to the documentation of this file.
1
3
#pragma once
4
#include "
any.hpp
"
5
#include <functional>
6
#include <string>
7
#include <typeindex>
8
#include <typeinfo>
9
#include <type_traits>
10
#include <unordered_map>
11
#include <vector>
12
14
extern
std::unordered_map<std::type_index, std::function<std::string(
xtd::any
const
&)>> __any_stringer__;
16
18
namespace
xtd
{
32
template
<
typename
type_t>
33
inline
auto
unregister_any_stringer
() ->
void
{
34
auto
it = __any_stringer__.find(std::type_index(
typeid
(type_t)));
35
if
(it != __any_stringer__.cend()) __any_stringer__.erase(it);
36
}
37
}
any.hpp
Contains xtd::any type and std::bad_any_cast exception.
xtd::unregister_any_stringer
auto unregister_any_stringer() -> void
Unregister an any stringer method for a specified type.
Definition
unregister_any_stringer.hpp:33
xtd::any
std::any any
Represents the any alias on std::any.
Definition
any.hpp:24
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
Generated on
for xtd by
Gammasoft
. All rights reserved.