Scroll to navigation

std::permutable(3) C++ Standard Libary std::permutable(3)

NAME

std::permutable - std::permutable

Synopsis

Defined in header <iterator> template< class I >

concept permutable = std::forward_iterator<I> && (since C++20) std::indirectly_movable_storable<I, I> &&

std::indirectly_swappable<I, I>;

The concept permutable refines std::forward_iterator by adding requirements for reordering through moves and swaps.


Semantic requirements

I models permutable only if all concepts it subsumes are modeled.

See also

sortable specifies the common requirements of algorithms that permute (C++20) sequences into ordered sequences
(concept) ranges::remove ranges::remove_if removes elements satisfying specific criteria (C++20) (algorithm function object) (C++20) ranges::unique removes consecutive duplicate elements in a range (C++20) (algorithm function object) ranges::reverse reverses the order of elements in a range (C++20) (algorithm function object) ranges::rotate rotates the order of elements in a range (C++20) (algorithm function object) ranges::shuffle randomly re-orders elements in a range (C++20) (algorithm function object) ranges::partition divides a range of elements into two groups (C++20) (algorithm function object) ranges::stable_partition divides elements into two groups while preserving their relative (C++20) order
(algorithm function object)

2026.11.10 http://cppreference.com