Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
gtl::stl_util_internal::TransparentLess Struct Reference

Like std::less, but allows heterogeneous arguments. More...

#include <stl_util.h>

Public Member Functions

template<typename T >
bool operator() (const T &a, const T &b) const
 
template<typename T1 , typename T2 >
bool operator() (const T1 &a, const T2 &b) const
 

Detailed Description

Like std::less, but allows heterogeneous arguments.

Definition at line 543 of file stl_util.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
bool gtl::stl_util_internal::TransparentLess::operator() ( const T & a,
const T & b ) const
inline

std::less is better than '<' here, because it can order pointers.

Definition at line 545 of file stl_util.h.

◆ operator()() [2/2]

template<typename T1 , typename T2 >
bool gtl::stl_util_internal::TransparentLess::operator() ( const T1 & a,
const T2 & b ) const
inline

Definition at line 550 of file stl_util.h.


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