carb::cpp::construct_at

Defined in carb/cpp/Memory.h

template<typename T, typename ...TArgs>
T *carb::cpp::construct_at(T *place, TArgs&&... args) noexcept

Construct a T in place using the provided args.

Note

This differs from the C++20 definition by not being constexpr, since placement new is not constexpr before C++20. When C++20 is enabled, this function disappears in favor of std::construct_at.