Dispatches a fixed‐size search to the best strategy for the range size.
Synopsis
Declared in <folly/algorithm/simd/FindFixed.h>
template<
typename T,
std::size_t N>
std::optional<std::size_t>
findFixedDispatch(
std::span<T const, N> where,
T x);
Return Value
Index of the first matching element, or std::nullopt if not found.
Parameters
Name |
Description |
where |
The fixed‐size range to search. |
x |
The value to search for. |
Created with MrDocs