is_contained overloads

Synopses

Declared in <llvm/ADT/STLExtras.h>

Return true iff Element exists in initializer list Set.

template<
    typename T,
    typename E>
constexpr
bool
is_contained(
    std::initializer_list<T> Set,
    E const& Element);

Return true if Element is found in Range.

template<
    typename R,
    typename E>
bool
is_contained(
    R&& Range,
    E const& Element);

Return Value

  • True if Element exists in Set.

  • True if Element is found in Range.

Parameters

Name

Description

Set

Initializer list to search.

Element

Value to look for.

Range

Range or container to search.

Created with MrDocs