4#ifndef TETL_UTILITY_SWAP_HPP
5#define TETL_UTILITY_SWAP_HPP
7#include <etl/_cstddef/size_t.hpp>
8#include <etl/_type_traits/is_move_assignable.hpp>
9#include <etl/_type_traits/is_move_constructible.hpp>
10#include <etl/_type_traits/is_nothrow_move_assignable.hpp>
11#include <etl/_type_traits/is_nothrow_move_constructible.hpp>
12#include <etl/_type_traits/is_swappable.hpp>
13#include <etl/_type_traits/remove_reference.hpp>
14#include <etl/_utility/move.hpp>
24 requires(
etl::is_move_constructible_v<T>
and etl::is_move_assignable_v<T>)
33template <
typename T,
etl::size_t N>
34 requires(
etl::is_swappable_v<T>)
37 for (
etl::size_t i = 0; i < N; ++i) {
Definition adjacent_find.hpp:9
constexpr auto swap(T &a, T &b) noexcept -> void
Exchanges the given values. Swaps the values a and b. This overload does not participate in overload ...
Definition swap.hpp:26
constexpr auto swap(T(&a)[N], T(&b)[N]) noexcept(etl::is_nothrow_swappable< T >::value) -> void
Definition swap.hpp:35