tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
common_reference_with.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2021 Tobias Hienzsch
3
4#ifndef TETL_CONCEPTS_COMMON_REFERENCE_WITH_HPP
5#define TETL_CONCEPTS_COMMON_REFERENCE_WITH_HPP
6
7#include <etl/_concepts/convertible_to.hpp>
8#include <etl/_concepts/same_as.hpp>
9#include <etl/_type_traits/common_reference.hpp>
10
11namespace etl {
12
13/// \ingroup concepts
14template <typename T, typename U>
15concept common_reference_with = same_as<common_reference_t<T, U>, common_reference_t<U, T>>
16 and convertible_to<T, common_reference_t<T, U>>
17 and convertible_to<U, common_reference_t<T, U>>;
18
19} // namespace etl
20
21#endif // TETL_CONCEPTS_COMMON_REFERENCE_WITH_HPP
Definition adjacent_find.hpp:9