tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_polymorphic.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_POLYMORPHIC_HPP
4#define TETL_TYPE_TRAITS_IS_POLYMORPHIC_HPP
5
6#include <etl/_config/all.hpp>
7
9
10namespace etl {
11
12template <typename T>
13struct is_polymorphic : bool_constant<__is_polymorphic(T)> { };
14
15template <typename T>
16inline constexpr bool is_polymorphic_v = __is_polymorphic(T);
17
18} // namespace etl
19
20#endif // TETL_TYPE_TRAITS_IS_POLYMORPHIC_HPP
Definition adjacent_find.hpp:8
constexpr bool is_polymorphic_v
Definition is_polymorphic.hpp:16
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
Definition is_polymorphic.hpp:13