tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_final.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_FINAL_HPP
4#define TETL_TYPE_TRAITS_IS_FINAL_HPP
5
6#include <etl/_config/all.hpp>
7
9
10namespace etl {
11
16template <typename T>
17struct is_final : bool_constant<__is_final(T)> { };
18
19template <typename T>
20inline constexpr bool is_final_v = __is_final(T);
21
22} // namespace etl
23
24#endif // TETL_TYPE_TRAITS_IS_FINAL_HPP
Definition adjacent_find.hpp:8
constexpr bool is_final_v
Definition is_final.hpp:20
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
If T is a final class (that is, a class declared with the final specifier), provides the member const...
Definition is_final.hpp:17