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// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_FUNCTIONAL_IS_TRANSPARENT_HPP
5#define TETL_FUNCTIONAL_IS_TRANSPARENT_HPP
6
7#include <etl/_type_traits/bool_constant.hpp>
8#include <etl/_type_traits/is_same.hpp>
9#include <etl/_type_traits/void_t.hpp>
10
11namespace etl::detail {
12
13template <typename T, typename = void>
14inline constexpr bool is_transparent_v = false;
15
16template <typename T>
17inline constexpr bool is_transparent_v<T, void_t<typename T::is_transparent>> = true;
18
19template <typename T>
20struct is_transparent : bool_constant<is_transparent_v<T>> { };
21
22} // namespace etl::detail
23
24#endif // TETL_FUNCTIONAL_IS_TRANSPARENT_HPP
Definition adjacent_find.hpp:9