5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_IS_DESTRUCTIBLE_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_IS_DESTRUCTIBLE_HPP_
28#define ARENE_STDLIB_TRIVIALLY_DESTRUCTIBLE_CHECK __is_trivially_destructible
30#define ARENE_STDLIB_TRIVIALLY_DESTRUCTIBLE_CHECK __has_trivial_destructor
43template <
typename Type>
48template <
typename Type>
58template <
typename Type,
typename =
void>
63template <
typename Type>
69template <
typename Type>
75template <
typename Type>
90template <typename Type>
105template <typename Type>
111template <typename Type>
116template <
typename Type>
122template <
typename Type>
127template <
typename Type>
133template <
typename Type>
Type trait to detect if a type is destructible.
Definition is_destructible.hpp:112
Type trait to detect if a type is destructible without throwing an exception.
Definition is_destructible.hpp:123
Type trait to detect if a type is trivially destructible.
Definition is_destructible.hpp:134
#define ARENE_STDLIB_TRIVIALLY_DESTRUCTIBLE_CHECK
Definition is_destructible.hpp:30
Definition is_destructible.hpp:36
is_destructible_result
The result of the "destructible" check: is the type not destructible, destructible but throwing,...
Definition is_destructible.hpp:54
@ destructible
Definition is_destructible.hpp:54
@ nothrow_destructible
Definition is_destructible.hpp:54
@ not_destructible
Definition is_destructible.hpp:54
constexpr bool is_array_of_unknown_bound_v
Type trait to detect if a type is an array of unknown bound.
constexpr auto try_destroy() noexcept(noexcept(declval< T & >().~T())) ->
Helper function for checking if a type is destructible.
remove_all_extents_t< remove_reference_t< Type > > raw_type_t
Helper alias for the non-array non-reference "raw" type for a given type.
Definition is_destructible.hpp:76
constexpr auto destructible_result_v
Type trait to check whether a type is destructible, and if so, if it is no-throw destructible.
integral_constant< bool, Value > bool_constant
An alias for integral_constant<bool,Value>
Definition integral_constant.hpp:71
::uint8_t uint8_t
An 8-bit unsigned integer type.
Definition cstdint.hpp:30
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 bool is_trivially_destructible_v
Type trait to detect if a type is trivially destructible.
constexpr bool is_destructible_v
Type trait to detect if a type is destructible.
arene::base::void_t< Args... > void_t
An alias for void that accepts any number of type parameters, used for substitution checks template.
Definition void_t.hpp:22
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...
constexpr bool is_nothrow_destructible_v
Type trait to detect if a type is destructible without throwing an exception.
constexpr bool is_reference_v
Check if the supplied template argument is a reference or not. The value is true if so,...
typename remove_all_extents< T >::type remove_all_extents_t
Removes all extents from the given array type.
Definition remove_all_extents.hpp:67