9#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_FUNCTIONAL_CONSTRUCT_HPP_
10#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_FUNCTIONAL_CONSTRUCT_HPP_
18#include "arene/base/stdlib_choice/enable_if.hpp"
19#include "arene/base/stdlib_choice/forward.hpp"
20#include "arene/base/stdlib_choice/is_constructible.hpp"
26namespace construct_detail {
43 constexpr auto operator()(Args&&... args)
const noexcept(std::is_nothrow_constructible<To, Args&&...>::value) -> To {
62ARENE_MAYBE_UNUSED constexpr auto const& construct = construct_detail::construct_fn<To>{};
#define ARENE_MAYBE_UNUSED
An alias for [[maybe_unused]] , or a no-op if the attribute is not supported.
Definition maybe_unused.hpp:25
Definition accumulate.hpp:37
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
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
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