Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::sortable

      From cppreference.com
      <cpp‎ |iterator
       
       
      Iterator library
      Iterator concepts
      Iterator primitives
      Algorithm concepts and utilities
      Indirect callable concepts
      Common algorithm requirements
      (C++20)
      (C++20)
      sortable
      (C++20)
      Utilities
      (C++20)
      Iterator adaptors
      Range access
      (C++11)(C++14)
      (C++14)(C++14)  
      (C++11)(C++14)
      (C++14)(C++14)  
      (C++17)(C++20)
      (C++17)
      (C++17)
       
      Defined in header<iterator>
      template<class I,class Comp=ranges::less,class Proj=std::identity>

      concept sortable=
         std::permutable<I>&&

         std::indirect_strict_weak_order<Comp, std::projected<I, Proj>>;
      (since C++20)

      Thesortable concept specifies the requirements for algorithms that permute a range into an ordered range according toComp.

      [edit]Semantic requirements

      std::sortable<I, Comp, Proj> is modeled only if all concepts it subsumes are modeled.

      [edit]See also

      sorts a range into ascending order
      (algorithm function object)[edit]
      sorts a range of elements while preserving order between equal elements
      (algorithm function object)[edit]
      sorts the first N elements of a range
      (algorithm function object)[edit]
      partially sorts the given range making sure that it is partitioned by the given element
      (algorithm function object)[edit]
      merges two ordered ranges in-place
      (algorithm function object)[edit]
      adds an element to a max heap
      (algorithm function object)[edit]
      removes the largest element from a max heap
      (algorithm function object)[edit]
      creates a max heap out of a range of elements
      (algorithm function object)[edit]
      turns a max heap into a range of elements sorted in ascending order
      (algorithm function object)[edit]
      generates the next greater lexicographic permutation of a range of elements
      (algorithm function object)[edit]
      generates the next smaller lexicographic permutation of a range of elements
      (algorithm function object)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/sortable&oldid=134041"

      [8]ページ先頭

      ©2009-2025 Movatter.jp