tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_specialized.hpp
Go to the documentation of this file.
1
2
3// SPDX-License-Identifier: BSL-1.0
4
5#ifndef TETL_TYPE_TRAITS_IS_SPECIALIZED_HPP
6#define TETL_TYPE_TRAITS_IS_SPECIALIZED_HPP
7
10
11namespace etl {
12
13template <template <typename...> typename, typename, typename = void>
15
16template <template <typename...> typename Template, typename T>
17struct is_specialized<Template, T, void_t<decltype(Template<T>{})>> : true_type { };
18
19template <template <typename...> typename Template, typename T, typename Tag = void>
21
22} // namespace etl
23
24#endif // TETL_TYPE_TRAITS_IS_SPECIALIZED_HPP
void void_t
Definition void_t.hpp:10
Definition adjacent_find.hpp:8
constexpr bool is_specialized_v
Definition is_specialized.hpp:20
bool_constant< true > true_type
Definition bool_constant.hpp:13
bool_constant< false > false_type
Definition bool_constant.hpp:14
static constexpr bool value
Definition integral_constant.hpp:10
Definition is_specialized.hpp:14