xref: /freebsd/contrib/llvm-project/libcxx/include/__concepts/destructible.h (revision 349cc55c9796c4596a5b9904cd3281af295f878f)
1*349cc55cSDimitry Andric //===----------------------------------------------------------------------===//
2*349cc55cSDimitry Andric //
3*349cc55cSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*349cc55cSDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*349cc55cSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*349cc55cSDimitry Andric //
7*349cc55cSDimitry Andric //===----------------------------------------------------------------------===//
8*349cc55cSDimitry Andric 
9*349cc55cSDimitry Andric #ifndef _LIBCPP___CONCEPTS_DESTRUCTIBLE_H
10*349cc55cSDimitry Andric #define _LIBCPP___CONCEPTS_DESTRUCTIBLE_H
11*349cc55cSDimitry Andric 
12*349cc55cSDimitry Andric #include <__config>
13*349cc55cSDimitry Andric #include <type_traits>
14*349cc55cSDimitry Andric 
15*349cc55cSDimitry Andric #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
16*349cc55cSDimitry Andric #pragma GCC system_header
17*349cc55cSDimitry Andric #endif
18*349cc55cSDimitry Andric 
19*349cc55cSDimitry Andric _LIBCPP_BEGIN_NAMESPACE_STD
20*349cc55cSDimitry Andric 
21*349cc55cSDimitry Andric #if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CONCEPTS)
22*349cc55cSDimitry Andric 
23*349cc55cSDimitry Andric // [concept.destructible]
24*349cc55cSDimitry Andric 
25*349cc55cSDimitry Andric template<class _Tp>
26*349cc55cSDimitry Andric concept destructible = is_nothrow_destructible_v<_Tp>;
27*349cc55cSDimitry Andric 
28*349cc55cSDimitry Andric #endif // _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CONCEPTS)
29*349cc55cSDimitry Andric 
30*349cc55cSDimitry Andric _LIBCPP_END_NAMESPACE_STD
31*349cc55cSDimitry Andric 
32*349cc55cSDimitry Andric #endif // _LIBCPP___CONCEPTS_DESTRUCTIBLE_H
33