diff --git a/deps/ox/src/ox/std/memory.hpp b/deps/ox/src/ox/std/memory.hpp index f2d4ee8f..92abf965 100644 --- a/deps/ox/src/ox/std/memory.hpp +++ b/deps/ox/src/ox/std/memory.hpp @@ -28,6 +28,11 @@ struct allocator { } }; +template +constexpr T *construct_at(T *p, Args &&...args ) { + return new (p) T(ox::forward(args)...); +} + } #endif