mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Implement util/auto_typemap.hpp
Used in vm::block_t as an example.
This commit is contained in:
parent
c94a98e15a
commit
567d23d856
7 changed files with 204 additions and 7 deletions
|
|
@ -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>;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue