|
Template Numerical Library version\ main:4e6e2c1
|
This page provides an overview of all find functions available for segment operations, helping to understand the differences between variants and choose the right function for your needs.
The segment find functions are organized into the following categories:
These functions search for elements satisfying a condition within segments:
| Function | Segments Searched | Description |
|---|---|---|
| Segments_findInAllSegments | All segments | Searches all segments in the container |
| Segments_findInSegments_range | Segments [begin, end) | Searches segments in a specified range |
| Segments_findInSegments_with_segment_indices | Segments in array | Searches only segments whose indices are in the |
provided array |
When to use:
These functions add an additional segment-level condition, searching only in segments that satisfy both the segment condition and contain elements matching the element condition:
| Function | Segments Searched | Description |
|---|---|---|
| Segments_findInAllSegmentsIf | All segments matching condition | Searches all segments that satisfy the segment |
condition | | Segments_findInSegmentsIf | Segments [begin, end) matching condition | Searches segments in range that satisfy the segment condition |
Note: The segment condition allows to skip entire segments based on segment-level properties, and so to improve performance.
All find functions share these common parameters:
Conditional variants additionally require:
Performance considerations: