Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
llvm::on_first< FuncTy > Struct Template Reference

Function object to apply a binary function to the first component of a std::pair. More...

#include "llvm/ADT/STLExtras.h"

Public Member Functions

template<typename T>
decltype(auto) operator() (const T &lhs, const T &rhs) const

Public Attributes

FuncTy func

Detailed Description

template<typename FuncTy>
struct llvm::on_first< FuncTy >

Function object to apply a binary function to the first component of a std::pair.

Definition at line 1445 of file STLExtras.h.

Member Function Documentation

◆ operator()()

template<typename FuncTy>
template<typename T>
decltype(auto) llvm::on_first< FuncTy >::operator() ( const T & lhs,
const T & rhs ) const
inline

Definition at line 1449 of file STLExtras.h.

References func, and T.

Member Data Documentation

◆ func

template<typename FuncTy>
FuncTy llvm::on_first< FuncTy >::func

Definition at line 1446 of file STLExtras.h.

Referenced by operator()().


The documentation for this struct was generated from the following file: