tas.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
core/type/as/aser.hpp
"
5
#include "
core/type/ntype.hpp
"
6
7
namespace
by {
8
9
template
<
typename
T>
struct
tas
:
public
aser
{
10
BY(ADT(
tas<T>
,
aser
))
11
12
public
:
13
virtual
~tas
() =
default
;
14
15
public
:
16
using
super::is;
17
18
nbool is(
const
type
& from,
const
type
& to)
const override
{
return
to ==
ttype<T>::get
(); }
19
};
20
}
aser.hpp
by::aser
Base type converter.
Definition:
aser.hpp:10
by::ttype
Template type wrapper for type metadata management.
Definition:
ttype.hpp:16
by::type
Base class for runtime type information in byeol language.
Definition:
type.hpp:12
ntype.hpp
by::tas
Definition:
tas.hpp:9