Returns whether the range contains the given value.
Synopsis
Declared in <folly/algorithm/simd/Contains.h>
template<
typename R,
typename T>
requires detail::contains_haystack_needle_test<R, T>()
bool
contains(
R&& r,
T x);
|
Note
|
This function is defined as an Algorithm Function Object (AFO). |
Return Value
True if the range contains the value, false otherwise.
Parameters
Name |
Description |
r |
The range to search. |
x |
The value to search for. |
Created with MrDocs