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_
14#include "stdlib/include/stdlib_detail/cstdint.hpp"
15#include "stdlib/include/stdlib_detail/declval.hpp"
16#include "stdlib/include/stdlib_detail/enable_if.hpp"
17#include "stdlib/include/stdlib_detail/integral_constant.hpp"
18#include "stdlib/include/stdlib_detail/is_reference.hpp"
19#include "stdlib/include/stdlib_detail/remove_all_extents.hpp"
20#include "stdlib/include/stdlib_detail/remove_reference.hpp"
22#include "stdlib/include/stdlib_detail/void_t.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.
constexpr bool is_array_of_unknown_bound_v< Type[]>
Type trait to detect if a type is an array of unknown bound.
constexpr auto destructible_result_v
Type trait to check whether a type is destructible, and if so, if it is no-throw destructible.
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.
constexpr bool is_nothrow_destructible_v
Type trait to detect if a type is destructible without throwing an exception.
constexpr auto operator()(::arene::base::result< void, E > const &value) const noexcept(noexcept(hash< E >{}(std::declval< E const & >()))) -> std::size_t
Calculate the hash of a result.
Definition result.hpp:1827