6#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MEMORY_CONSTRUCT_AT_HPP_
7#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MEMORY_CONSTRUCT_AT_HPP_
15#include "arene/base/stdlib_choice/declval.hpp"
16#include "arene/base/stdlib_choice/enable_if.hpp"
17#include "arene/base/stdlib_choice/forward.hpp"
18#include "arene/base/stdlib_choice/is_constructible.hpp"
22#include "arene/base/stdlib_choice/new.hpp"
30namespace construct_at_detail {
32template <
typename T,
typename... Args>
36template <typename T, typename... Args>
40class do_construct_at {
63 auto operator()(T* ptr, Args&&... args)
const noexcept(std::is_nothrow_constructible<T, Args...>::value) -> T* {
#define ARENE_CPP14_INLINE_VARIABLE(type, name)
Emulates C++17's inline variable declarations for function objects.
Definition cpp14_inline.hpp:69
Definition accumulate.hpp:37
constexpr bool substitution_succeeds
Determines if a template can be instantiated successfully, similar to C++20's requires clause.
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
typename static_if< give_qualifiers_to_detail::is_volatile_v< Source > >::template then_apply_else_apply< give_qualifiers_to_detail::give_qualifiers_to_impl_volatile, give_qualifiers_to_detail::give_qualifiers_to_impl_nonvolatile, Source, Target > give_qualifiers_to
For a type Source and type Target: if Source is const volatile results in Target const volatile other...
Definition give_qualifiers_to.hpp:68
Definition accumulate.hpp:36
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...
constexpr auto forward(remove_reference_t< T > &value) noexcept -> T &&
Cast a value to an rvalue if T is an rvalue or rvalue reference, otherwise forward an lvalue referenc...
Definition forward.hpp:24