From 1170277e91490f455d9727fa29c38d60c710151b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 26 Jun 2015 21:32:37 +0100 Subject: Always inline Allocator::construct/destroy --- src/memory.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/memory.hh') diff --git a/src/memory.hh b/src/memory.hh index a31e83c9..fb36b3e7 100644 --- a/src/memory.hh +++ b/src/memory.hh @@ -112,12 +112,14 @@ struct Allocator } template + [[gnu::always_inline]] void construct(U* p, Args&&... args) { new ((void*)p) U(std::forward(args)...); } template + [[gnu::always_inline]] void destroy(U* p) { p->~U(); } }; -- cgit v1.2.3