xo-reader2 stack: + #q token + QuoteSsm [WIP - not functional]
This commit is contained in:
parent
09e59840c0
commit
bca03275bc
1 changed files with 6 additions and 0 deletions
|
|
@ -161,6 +161,12 @@ namespace xo {
|
||||||
**/
|
**/
|
||||||
AllocInfo alloc_info(value_type mem) const noexcept;
|
AllocInfo alloc_info(value_type mem) const noexcept;
|
||||||
|
|
||||||
|
/** convenience template for allocating for a T-instance **/
|
||||||
|
template <typename T>
|
||||||
|
void * alloc_for(size_type n = sizeof(T)) {
|
||||||
|
return this->alloc(typeseq::id<T>(), n);
|
||||||
|
}
|
||||||
|
|
||||||
/** allocate at least @p z bytes of memory.
|
/** allocate at least @p z bytes of memory.
|
||||||
* Return nullptr and capture error if unable to satisfy request.
|
* Return nullptr and capture error if unable to satisfy request.
|
||||||
* May expand committed memory, as long as resulting committed size
|
* May expand committed memory, as long as resulting committed size
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue