std::sortable
From cppreference.com
 
 
 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Iterator library 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
   
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
  
 
 
 
 
 
  
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)(C++20)(C++23)(C++20)(C++20)
(deprecated in C++17)
(C++20)
(C++20)
(C++20)(C++20)
  (C++20)
(C++20)
(C++20)
(C++20)
(C++14)
(C++11)
(C++11)
(C++20)(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++23)
(C++23)
(C++23)
(C++23)
(C++23)
(C++11)(C++14)
(C++14)(C++14)
  Defined in header 
 
 
<iterator> 
 template< class I, class Comp = ranges::less, class Proj = std::identity >
 
 (since C++20) 
concept sortable =
    std::permutable <I> &&
The sortable concept specifies the requirements for algorithms that permute a range into an ordered range according to Comp.
[edit] Semantic requirements
std::sortable<I, Comp, Proj> is modeled only if all concepts it subsumes are modeled.
[edit] See also
(C++20)
(algorithm function object)[edit]
(C++20)
(algorithm function object)[edit]
(C++20)
(algorithm function object)[edit]
(C++20)
(algorithm function object)[edit]
(C++20)
(algorithm function object)[edit]