Return true iff Element exists in initializer list Set.

Synopsis

Declared in <llvm/ADT/STLExtras.h>

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

Description

This overload is constexpr‐friendly.

Return Value

True if Element exists in Set.

Parameters

Name

Description

Set

Initializer list to search.

Element

Value to look for.

Created with MrDocs