xo-expression2 stack: expand MemorySizeInfo w/ per-type detail
This commit is contained in:
parent
fc9ca649dd
commit
f655dbb86a
1 changed files with 3 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ namespace xo {
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int32_t seqno_ = 0;
|
int32_t seqno_ = -1;
|
||||||
std::string_view name_;
|
std::string_view name_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -91,10 +91,11 @@ namespace xo {
|
||||||
return typeseq(xo::reflect::typerecd::recd<T>().seqno());
|
return typeseq(xo::reflect::typerecd::recd<T>().seqno());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_sentinel() const { return seqno_ == -1; }
|
||||||
int32_t seqno() const { return seqno_; }
|
int32_t seqno() const { return seqno_; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int32_t seqno_ = 0;
|
int32_t seqno_ = -1;
|
||||||
};
|
};
|
||||||
|
|
||||||
//template <typename Tag>
|
//template <typename Tag>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue