CARVIEW |
Select Language
HTTP/2 200
date: Mon, 21 Jul 2025 21:47:29 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"f59aef1f9dff017c697d525ad8d9c0bb"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=VgWa%2BJ0gSJk1pm6qzm%2BNKkMoIpYsQwfbTqSkbh6JCGO8b2dIRIZV1HcQIjeGi5y1PwHzR57pi%2FScaQWJg%2FxUYDJTEccFU9jLWTTQ76ljJcKLODbPfENHSdXug4h9Mo0cUNIFrVcyRl8t0Ih7COdYA6djLrdrM8ni0dwsWEafWBoLvOD5YrSwDJBPeY%2BN%2F9YLhzaSp2GxP2XJdF15cGthyiA1LVJCEWEf5ZFxt3%2BagF0%2BjaiVjDM0hrNZ6RtCOX4f6UHc%2FBXCYySsRq2UIbj%2BHw%3D%3D--Fg%2BjbST2fSkaf0U%2F--ekllzc8sNsIqA%2FYq6BQC6w%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2112856947.1753134449; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 21:47:29 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 21:47:29 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C732:DCF94:79B38:AFAC2:687EB571
Algorithms · disksing/iter Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 13
Algorithms
disksing edited this page Dec 15, 2019
·
1 revision
Function | Description |
---|---|
AllOf AnyOf NoneOf | checks if a predicate is true for all, any or none of the elements in a range |
ForEach | applies a function to a range of elements |
ForEachN | applies a function object to the first n elements of a sequence |
Count CountIf | returns the number of elements satisfying specific criteria |
Mismatch MismatchBy | finds the first position where two ranges differ |
Find FindIf FindIfNot | finds the first element satisfying specific criteria |
FindEnd FindEndBy | finds the last sequence of elements in a certain range |
FindFirstOf FindFirstOfBy | searches for any one of a set of elements |
AdjacentFind AdjacentFindBy | finds the first two adjacent items that are equal (or satisfy a given predicate) |
Search SearchBy | searches for a range of elements |
SearchN SearchNBy | searches a range for a number of consecutive copies of an element |
Function | Description |
---|---|
Copy CopyIf | copies a range of elements to a new location |
CopyN | copies a number of elements to a new location |
CopyBackward | copies a range of elements in backwards order |
Fill | copy-assigns the given value to every element in a range |
FillN | copy-assigns the given value to N elements in a range |
Transform TransformBinary | applies a function to a range of elements, storing results in a destination range |
Generate | assigns the results of successive function calls to every element in a range |
GenerateN | assigns the results of successive function calls to N elements in a range |
Remove RemoveIf | removes elements satisfying specific criteria |
RemoveCopy RemoveCopyIf | copies a range of elements omitting those that satisfy specific criteria |
Replace ReplaceIf | replaces all values satisfying specific criteria with another value |
ReplaceCopy ReplaceCopyIf | copies a range, replacing elements satisfying specific criteria with another value |
Swap | swaps the values of two iterators |
SwapRanges | swaps two ranges of elements |
Reverse | reverses the order of elements in a range |
ReverseCopy | creates a copy of a range that is reversed |
Rotate | rotates the order of elements in a range |
RotateCopy | copies and rotate a range of elements |
Shuffle | randomly re-orders elements in a range |
Sample | selects n random elements from a sequence |
Unique UniqueIf | removes consecutive duplicate elements in a range |
UniqueCopy UniqueCopyIf | creates a copy of some range of elements that contains no consecutive duplicates |
Function | Description |
---|---|
IsPartitioned | determines if the range is partitioned by the given predicate |
Partition | divides a range of elements into two groups |
PartitionCopy | copies a range dividing the elements into two groups |
StablePartition | divides elements into two groups while preserving their relative order |
PartitionPoint | locates the partition point of a partitioned range |
Function | Description |
---|---|
IsSorted IsSortedBy | checks whether a range is sorted into ascending order |
IsSortedUntil IsSortedUntilBy | finds the largest sorted subrange |
Sort SortBy | sorts a range into ascending order |
PartialSort PartialSortBy | sorts the first N elements of a range |
PartialSortCopy PartialSortCopyBy | copies and partially sorts a range of elements |
StableSort StableSortBy | sorts a range of elements while preserving order between equal elements |
NthElement NthElementBy | partially sorts the given range making sure that it is partitioned by the given element |
Function | Description |
---|---|
LowerBound LowerBoundBy | returns an iterator to the first element not less than the given value |
UpperBound UpperBoundBy | returns an iterator to the first element greater than a certain value |
BinarySearch BinarySearchBy | determines if an element exists in a certain range |
EqualRange EqualRangeBy | returns range of elements matching a specific key |
Function | Description |
---|---|
Merge MergeBy | merges two sorted ranges |
InplaceMerge InplaceMergeBy | merges two ordered ranges in-place |
Function | Description |
---|---|
Includes IncludesBy | returns true if one set is a subset of another |
SetDifference SetDifferenceBy | computes the difference between two sets |
SetIntersection SetIntersectionBy | computes the intersection of two sets |
SetSymmetricDifference SetSymmetricDifferenceBy | computes the symmetric difference between two sets |
SetUnion SetUnionBy | computes the union of two sets |
Function | Description |
---|---|
IsHeap IsHeapBy | checks if the given range is a max heap |
IsHeapUntil IsHeapUntilBy | finds the largest subrange that is a max heap |
MakeHeap MakeHeapBy | creates a max heap out of a range of elements |
PushHeap PushHeapBy | adds an element to a max heap |
PopHeap PopHeapBy | removes the largest element from a max heap |
SortHeap SortHeapBy | turns a max heap into a range of elements sorted in ascending order |
Function | Description |
---|---|
Max MaxBy | returns the greater of the given values |
MaxElement MaxElementBy | returns the largest element in a range |
Min MinBy | returns the smaller of the given values |
MinElement MinElementBy | returns the smallest element in a range |
Minmax MinmaxBy | returns the smaller and larger of two elements |
MinmaxElement MinmaxElementBy | returns the smallest and the largest elements in a range |
Clamp ClampBy | clamps a value between a pair of boundary values |
Function | Description |
---|---|
Equal EqualBy | determines if two sets of elements are the same |
LexicographicalCompare LexicographicalCompareBy | returns true if one range is lexicographically less than another |
LexicographicalCompareThreeWay LexicographicalCompareThreeWayBy | compares two ranges using three-way comparison |
Function | Description |
---|---|
IsPermutation IsPermutationBy | determines if a sequence is a permutation of another sequence |
NextPermutation NextPermutationBy | generates the next greater lexicographic permutation of a range of elements |
PrevPermutation PrevPermutationBy | generates the next smaller lexicographic permutation of a range of elements |
Function | Description |
---|---|
Iota IotaBy | fills a range with successive increments of the starting value |
Accumulate AccumulateBy | sums up a range of elements |
InnerProduct InnerProductBy | computes the inner product of two ranges of elements |
AdjacentDifference AdjacentDifferenceBy | computes the differences between adjacent elements in a range |
PartialSum PartialSumBy | computes the partial sum of a range of elements |
ExclusiveScan ExclusiveScanBy | similar to PartialSum, excludes the ith input element from the ith sum |
InclusiveScan InclusiveScanBy | similar to PartialSum, includes the ith input element in the ith sum |
TransformExclusiveScan TransformExclusiveScanBy | applies a function, then calculates exclusive scan |
TransformInclusiveScan TransformInclusiveScanBy | applies a function, then calculates inclusive scan |
Clone this wiki locally
You can’t perform that action at this time.