alloc/arena: forward reset calls to underlying store of owned arena

This commit is contained in:
Danny Robson 2018-10-04 14:53:21 +10:00
parent fdbe909fb8
commit 591a321f47

View File

@ -75,7 +75,6 @@ namespace cruft::alloc {
};
}
private:
T &m_store;
};
@ -112,6 +111,10 @@ namespace cruft::alloc {
decltype(auto) unique (ArgsT &&...args)
{ return m_arena.template unique<T,ArgsT...> (std::forward<ArgsT> (args)...); }
template <typename ...Args>
decltype(auto) reset (Args&&...args)
{ return m_store.reset (std::forward<Args> (args)...); }
private:
AllocT m_store;
arena<AllocT> m_arena;