LLVM  10.0.0svn
Public Member Functions | Public Attributes | List of all members
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"

Collaboration diagram for llvm::on_first< FuncTy >:
Collaboration graph
[legend]

Public Member Functions

template<typename T >
auto operator() (const T &lhs, const T &rhs) const -> decltype(func(lhs.first, rhs.first))
 

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 990 of file STLExtras.h.

Member Function Documentation

◆ operator()()

template<typename FuncTy >
template<typename T >
auto llvm::on_first< FuncTy >::operator() ( const T lhs,
const T rhs 
) const -> decltype(func(lhs.first, rhs.first))
inline

Definition at line 994 of file STLExtras.h.

Member Data Documentation

◆ func

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

Definition at line 991 of file STLExtras.h.


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