[ox/std] Add std::construct_at
This commit is contained in:
Vendored
+5
@@ -28,6 +28,11 @@ struct allocator {
|
||||
}
|
||||
};
|
||||
|
||||
template<typename T, typename... Args>
|
||||
constexpr T *construct_at(T *p, Args &&...args ) {
|
||||
return new (p) T(ox::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user