alloc/arena: add mutating accessor to underlying store
This commit is contained in:
parent
17c9d79c77
commit
ddb0e75962
@ -128,11 +128,8 @@ namespace cruft::alloc {
|
||||
decltype(auto) reset (Args&&...args)
|
||||
{ return m_store.reset (std::forward<Args> (args)...); }
|
||||
|
||||
/// Returns a const reference to the inner allocator.
|
||||
///
|
||||
/// Do not return a non-const reference. If the user wants direct
|
||||
/// access they should directly use a non-owning arena.
|
||||
auto const& store (void) const& { return m_store; }
|
||||
auto & store (void) & { return m_store; }
|
||||
|
||||
private:
|
||||
AllocT m_store;
|
||||
|
Loading…
Reference in New Issue
Block a user