HydroCouple  2.0.0
HydroCouple Interface Definitions
Loading...
Searching...
No Matches
HydroCouple::hydrocouple_variant_less Struct Reference

Comparator for hydrocouple_variant that enables use in ordered containers. More...

#include <hydrocouple.h>

Collaboration diagram for HydroCouple::hydrocouple_variant_less:

Public Member Functions

bool operator() (const hydrocouple_variant &lhs, const hydrocouple_variant &rhs) const
 

Detailed Description

Comparator for hydrocouple_variant that enables use in ordered containers.

Compares by variant index first, then by held value for types that support ordering. std::monostate and std::any are treated as equal when they share the same index.

Member Function Documentation

◆ operator()()

bool HydroCouple::hydrocouple_variant_less::operator() ( const hydrocouple_variant lhs,
const hydrocouple_variant rhs 
) const
inline

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