tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_same.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_SAME_HPP
4#define TETL_TYPE_TRAITS_IS_SAME_HPP
5
7
8namespace etl {
9
10template <typename T, typename U>
11inline constexpr bool is_same_v = false;
12
13template <typename T>
14inline constexpr bool is_same_v<T, T> = true;
15
19template <typename T, typename U>
20struct is_same : bool_constant<is_same_v<T, U>> { };
21
22} // namespace etl
23
24#endif // TETL_TYPE_TRAITS_IS_SAME_HPP
Definition adjacent_find.hpp:8
constexpr bool is_same_v
Definition is_same.hpp:11
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
If T and U name the same type (taking into account const/volatile qualifications),...
Definition is_same.hpp:20