Leonardus
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SOD::FunctorEqual Struct Reference

Equality functor for SO* keys in SOD's unordered_map. More...

+ Collaboration diagram for SOD::FunctorEqual:

Public Member Functions

bool operator() (const SOp &p_lhs, const SOp &p_rhs) const
 Checks if two SO* objects are semantically equal.
 

Detailed Description

Equality functor for SO* keys in SOD's unordered_map.

Uses SO::equal() for semantic comparison

Note
Designed for use with std::unordered_map<SOp, SOp, FunctorHash, FunctorEqual>.
Invariant
none.

Member Function Documentation

◆ operator()()

bool SOD::FunctorEqual::operator() ( const SOp &  p_lhs,
const SOp &  p_rhs 
) const
inline

Checks if two SO* objects are semantically equal.

Precondition
p_lhs != nullptr
p_rhs != nullptr
Parameters
p_lhsThe left-hand SO*.
p_rhsThe right-hand SO*.
Returns
bool ... True if the objects are equal, false otherwise.

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