tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
swappable.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
// SPDX-FileCopyrightText: Copyright (C) 2023 Tobias Hienzsch
3
4
#
ifndef
TETL_CONCEPTS_SWAPPABLE_HPP
5
#
define
TETL_CONCEPTS_SWAPPABLE_HPP
6
7
#
include
<
etl
/
_utility
/
swap
.
hpp
>
8
9
namespace
etl
{
10
11
/// \todo Convert to ranges::swap once available
12
/// \ingroup concepts
13
template
<
typename
T>
14
concept
swappable =
requires
(T& a, T& b) {
15
swap(a, b);
16
// ranges::swap(a, b);
17
};
18
19
}
// namespace etl
20
21
#
endif
// TETL_CONCEPTS_SWAPPABLE_HPP
etl
Definition
adjacent_find.hpp:9
include
etl
_concepts
swappable.hpp
Generated on Sun Sep 7 2025 19:14:53 for tetl by
1.9.8