7#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_IS_IMPLICITLY_CONSTRUCTIBLE_HPP_
8#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_IS_IMPLICITLY_CONSTRUCTIBLE_HPP_
10#include "arene/base/stdlib_choice/declval.hpp"
11#include "arene/base/stdlib_choice/integral_constant.hpp"
21namespace is_implicitly_constructible_detail {
35template <
class T,
class... Args>
36constexpr auto try_to_implicitly_construct(priority_tag<1>)
noexcept(
44template <
class T,
class... Args>
45constexpr auto try_to_implicitly_construct(priority_tag<0>)
noexcept ->
std::false_type;
51template <
bool IsConstructible,
class T,
class... Args>
52class is_nothrow_implicitly_constructible_impl :
public std::false_type {};
57template <
class T,
class... Args>
58class is_nothrow_implicitly_constructible_impl<true, T, Args...> {
62 static constexpr bool value{
63 noexcept(is_implicitly_constructible_detail::try_to_implicitly_construct<T, Args...>(priority_tag<1>{}))
75template <
class T,
class... Args>
77 decltype(is_implicitly_constructible_detail::try_to_implicitly_construct<T, Args...>(
priority_tag<1>{}));
82template <
class T,
class... Args>
88template <
class T,
class... Args>
95template <
class T,
class... Args>
A priority tag for overload resolution.
Definition priority_tag.hpp:45
static constexpr value_type value
Definition integral_constant.hpp:34
Definition accumulate.hpp:37
constexpr bool is_nothrow_implicitly_constructible_v
Type trait to detect if a type is nothrow implicitly constructible from arguments of the specified ty...
Args... >(priority_tag< 1 >{})) is_implicitly_constructible
Type trait to detect if a type is implicitly constructible from arguments of the specified types.
Definition is_implicitly_constructible.hpp:76
is_implicitly_constructible_detail:: is_nothrow_implicitly_constructible_impl< is_implicitly_constructible_v< T, Args... >, T, Args... > is_nothrow_implicitly_constructible
Type trait to detect if a type is nothrow implicitly constructible from arguments of the specified ty...
Definition is_implicitly_constructible.hpp:89
constexpr bool is_implicitly_constructible_v
Type trait to detect if a type is implicitly constructible from arguments of the specified types.
Definition accumulate.hpp:36
bool_constant< false > false_type
An alias for bool_constant<false>
Definition integral_constant.hpp:79
bool_constant< true > true_type
An alias for bool_constant<true>
Definition integral_constant.hpp:76
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...