tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
has_virtual_destructor.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_HAS_VIRTUAL_DESTRUCTOR_HPP
4#define TETL_TYPE_TRAITS_HAS_VIRTUAL_DESTRUCTOR_HPP
5
6#include <etl/_config/all.hpp>
7
9
10namespace etl {
11
14template <typename T>
15struct has_virtual_destructor : bool_constant<__has_virtual_destructor(T)> { };
16
19template <typename T>
20inline constexpr auto has_virtual_destructor_v = __has_virtual_destructor(T);
21
22} // namespace etl
23
24#endif // TETL_TYPE_TRAITS_HAS_VIRTUAL_DESTRUCTOR_HPP
constexpr auto has_virtual_destructor_v
Definition has_virtual_destructor.hpp:20
Definition adjacent_find.hpp:8
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
https://en.cppreference.com/w/cpp/types/has_virtual_destructor
Definition has_virtual_destructor.hpp:15