Skip to content

Commit 561beac

Browse files
committed
meta type_ids
1 parent 838307a commit 561beac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

kit/meta/meta.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,13 @@ class Meta_:
748748
// >()
749749
//);
750750

751+
MetaType::ID type_id(const std::string& key) const {
752+
return m_Elements.at(m_Keys.at(key)).type.id;
753+
}
754+
MetaType::ID type_id(unsigned idx) const {
755+
return m_Elements.at(idx).type.id;
756+
}
757+
751758
unsigned id(const std::string& key) {
752759
auto l = this->lock();
753760
return m_Keys.at(key);

0 commit comments

Comments
 (0)