diff --git a/include/gp/allocator/arena.hpp b/include/gp/allocator/arena.hpp index 118a2bd..9881b4c 100644 --- a/include/gp/allocator/arena.hpp +++ b/include/gp/allocator/arena.hpp @@ -4,26 +4,24 @@ #include #include - - -namespace gp{ +namespace gp { template - class arena{ + class arena { page_allocator allocator; gp::buffer data; size_t last; size_t count; public: arena() - :last(0) - ,count(0) - ,data(gp::buffer(nullptr,nullptr)) + : last(0) + , count(0) + , data(gp::buffer(nullptr,nullptr)) {} arena(size_t sz) - :last(0) - ,count(0) - ,data(nullptr,nullptr) + : last(0) + , count(0) + , data(nullptr,nullptr) { if constexpr (gp::has_allocator_interface::value) { @@ -39,11 +37,10 @@ namespace gp{ } arena(char* pos,size_t sz) - :last(0) - ,count(0) - ,data(pos,pos+sz) - { - } + : last(0) + , count(0) + , data(pos,pos+sz) + {} void* allocate(size_t sz) { @@ -98,4 +95,4 @@ namespace gp{ } } }; -} \ No newline at end of file +}