clang::mrdocs::contains

Determine if a range contains a specific element.

Synopsis

Declared in <mrdocs/Support/Algorithm.hpp>
template<
    std::ranges::range Range,
    class El>
requires std::equality_comparable_with<El, std::ranges::range_value_t<Range>>
bool
contains(
    Range&& range,
    El const& el);


Return Value

True if the element is found, false otherwise.

Parameters

Name Description
range The range to search.
el The element to search for.

Created with MrDocs