WPILibC++  2020.3.2-60-g3011ebe
wpi::on_first< FuncTy > Struct Template Reference

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

#include <STLExtras.h>

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 wpi::on_first< FuncTy >

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


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