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
9
10namespace etl::detail {
11
12template <typename T, typename = void>
13inline constexpr bool is_transparent_v = false;
14
15template <typename T>
16inline constexpr bool is_transparent_v<T, void_t<typename T::is_transparent>> = true;
17
18template <typename T>
19struct is_transparent : bool_constant<is_transparent_v<T>> { };
20
21} // namespace etl::detail
22
23#endif // TETL_FUNCTIONAL_IS_TRANSPARENT_HPP
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11