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// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_TYPE_TRAITS_HAS_VIRTUAL_DESTRUCTOR_HPP
5#define TETL_TYPE_TRAITS_HAS_VIRTUAL_DESTRUCTOR_HPP
6
7#include <etl/_config/all.hpp>
8
9#include <etl/_type_traits/bool_constant.hpp>
10
11namespace etl {
12
13/// https://en.cppreference.com/w/cpp/types/has_virtual_destructor
14/// \ingroup type_traits
15template <typename T>
16struct has_virtual_destructor : bool_constant<__has_virtual_destructor(T)> { };
17
18/// \relates has_virtual_destructor
19/// \ingroup type_traits
20template <typename T>
21inline constexpr auto has_virtual_destructor_v = __has_virtual_destructor(T);
22
23} // namespace etl
24
25#endif // TETL_TYPE_TRAITS_HAS_VIRTUAL_DESTRUCTOR_HPP
constexpr auto has_virtual_destructor_v
Definition has_virtual_destructor.hpp:21
Definition adjacent_find.hpp:9
https://en.cppreference.com/w/cpp/types/has_virtual_destructor
Definition has_virtual_destructor.hpp:16