Skip to content

Commit f7f37ef

Browse files
authored
Update Vectorized STL algorithm documentation to reflect the current stae (#5937)
Since the last update: * ARM64 and ARM64EC vectorization was added. Mention of x64 and x86 is removed, as vectorization is now supported on any target, except deprecated `/clr:pure` and `/clr:safe` modes. * `includes` is now manually vectorized too * `replace_copy` is now manually vectorized too Also moved `find_end` to `search` / `search_n` group, where it fits better.
1 parent 8f9d3e6 commit f7f37ef

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

docs/standard-library/vectorized-stl-algorithms.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Algorithms like `transform`, `reduce`, and `accumulate` benefit heavily from aut
2424

2525
## Manual vectorization in the MSVC STL
2626

27-
Certain algorithms for x64 and x86 include manual vectorization. This implementation is separately compiled and relies on runtime CPU dispatch, so it applies only to suitable CPUs.
27+
Certain algorithms include manual vectorization. This implementation is separately compiled and relies on runtime CPU dispatch, so it applies only to suitable CPUs.
2828

2929
Manually vectorized algorithms use template metaprogramming to detect if the element type is suitable for vectorization. As a result, they're only vectorized for simple types such as standard integer types.
3030

@@ -35,17 +35,18 @@ Assign the same value to `_USE_STD_VECTOR_ALGORITHMS` for all linked translation
3535

3636
The `_USE_STD_VECTOR_ALGORITHMS` macro controls the behavior of these manually vectorized algorithms:
3737
- `contains`, `contains_subrange`
38-
- `find`, `find_last`, `find_end`, `find_first_of`, `adjacent_find`
38+
- `find`, `find_last`, `find_first_of`, `adjacent_find`
3939
- `count`
4040
- `mismatch`
41-
- `search`, `search_n`
41+
- `search`, `search_n`, `find_end`
4242
- `swap_ranges`
43-
- `replace`
43+
- `replace`, `replace_copy`
4444
- `remove`, `remove_copy`
4545
- `unique`, `unique_copy`
4646
- `reverse`, `reverse_copy`
4747
- `rotate`
4848
- `is_sorted`, `is_sorted_until`
49+
- `includes`
4950
- `lexicographical_compare`, `lexicographical_compare_three_way`
5051
- `max`, `min`, `minmax`
5152
- `max_element`, `min_element`, `minmax_element`

0 commit comments

Comments
 (0)