xo-alloc: explicit typeseq arg to alloc
This commit is contained in:
parent
d5201d2a31
commit
195d59534f
1 changed files with 7 additions and 0 deletions
|
|
@ -44,6 +44,13 @@ namespace xo {
|
|||
|
||||
}
|
||||
|
||||
/** 'anonymous' sentinel type.
|
||||
* Niche uses for this, e.g. untyped allocator
|
||||
**/
|
||||
static typeseq_impl<Tag> anon() {
|
||||
return typeseq_impl(-1);
|
||||
}
|
||||
|
||||
int32_t seqno() const { return seqno_; }
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue