Implement util/auto_typemap.hpp

Used in vm::block_t as an example.
This commit is contained in:
Nekotekina 2020-12-24 14:55:25 +03:00
parent c94a98e15a
commit 567d23d856
7 changed files with 204 additions and 7 deletions

View file

@ -135,4 +135,11 @@ namespace stx
{
return type_counter<Info>::template type<T>.index();
}
// Type info accessor
template <typename Info, typename T>
inline const Info& typedata() noexcept
{
return type_counter<Info>::template type<T>;
}
}