tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_transparent.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_FUNCTIONAL_IS_TRANSPARENT_HPP
4
#define TETL_FUNCTIONAL_IS_TRANSPARENT_HPP
5
6
#include <
etl/_type_traits/bool_constant.hpp
>
7
#include <
etl/_type_traits/is_same.hpp
>
8
#include <
etl/_type_traits/void_t.hpp
>
9
10
namespace
etl::detail {
11
12
template
<
typename
T,
typename
=
void
>
13
inline
constexpr
bool
is_transparent_v =
false
;
14
15
template
<
typename
T>
16
inline
constexpr
bool
is_transparent_v<T, void_t<typename T::is_transparent>> =
true
;
17
18
template
<
typename
T>
19
struct
is_transparent :
bool_constant
<is_transparent_v<T>> { };
20
21
}
// namespace etl::detail
22
23
#endif
// TETL_FUNCTIONAL_IS_TRANSPARENT_HPP
bool_constant.hpp
is_same.hpp
etl::bool_constant
integral_constant< bool, B > bool_constant
Definition
bool_constant.hpp:11
void_t.hpp
include
etl
_functional
is_transparent.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0