Google OR-Tools v9.14
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...

Detailed Description

Like std::less, but allows heterogeneous arguments.

Definition at line 540 of file stl_util.h.

#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

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 542 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 547 of file stl_util.h.


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