Build a unary predicate that tests equality to Arg.

Synopsis

Declared in <llvm/ADT/STLExtras.h>

template<typename T>
constexpr
auto
equal_to(T&& Arg);

Description

Functor variant of std::equal_to for algorithms like all_of. The argument is forwarded and stored by value. To pass by reference, use std::ref or std::cref.

Return Value

A unary predicate that tests equality to Arg.

Parameters

Name

Description

Arg

Value to compare against.

Created with MrDocs