tas.hpp
Go to the documentation of this file.
1
2#pragma once
3
5#include "core/type/ntype.hpp"
6
7namespace 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}
Base type converter.
Definition: aser.hpp:10
Template type wrapper for type metadata management.
Definition: ttype.hpp:16
Base class for runtime type information in byeol language.
Definition: type.hpp:12
Definition: tas.hpp:9