Function uses_allocator_construction_args
Synopsis
#include <src/entt/core/memory.hpp>
template <typename Type, typename Allocator, typename... Args>
constexpr auto uses_allocator_construction_args(const Allocator &allocator, Args &&...args)
Description
Uses-allocator construction utility (waiting for C++20).
Primarily intended for internal use. Prepares the argument list needed to create an object of a given type by means of uses-allocator construction.
- Template Parameters
Type
- Type to return arguments for.Allocator
- Type of allocator used to manage memory and elements.Args
- Types of arguments to use to construct the object.- Parameters
allocator
- The allocator to use.args
- Parameters to use to construct the object.- Returns
- The arguments needed to create an object of the given type.
Source
Lines 245-248 in src/entt/core/memory.hpp.
template<typename Type, typename Allocator, typename... Args>
constexpr auto uses_allocator_construction_args(const Allocator &allocator, Args &&...args) ENTT_NOEXCEPT {
return internal::uses_allocator_construction<Type>::args(allocator, std::forward<Args>(args)...);
}