diff --git a/TurboList.hpp b/TurboList.hpp index 53ffaf0..6e53c7e 100644 --- a/TurboList.hpp +++ b/TurboList.hpp @@ -94,6 +94,12 @@ public: } } + template + inline void emplace(Args&&... args) { + // FIXME: placement new needed + insert(T(std::forward(args)...)); + } + inline uint32_t size() noexcept { return end; }