tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
same_as.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CONCEPTS_SAME_AS_HPP
4#define TETL_CONCEPTS_SAME_AS_HPP
5
7
8namespace etl {
9
10namespace detail {
11template <typename T, typename U>
12concept same_helper = etl::is_same_v<T, U>;
13}
14
18template <typename T, typename U>
19concept same_as = detail::same_helper<T, U> and detail::same_helper<U, T>;
20
21} // namespace etl
22
23#endif // TETL_CONCEPTS_SAME_AS_HPP
The concept same_as<T, U> is satisfied if and only if T and U denote the same type....
Definition same_as.hpp:19
Definition adjacent_find.hpp:8
constexpr bool is_same_v
Definition is_same.hpp:11