Template Struct less< amdinfer::RequestParameters >

Struct Documentation

template<>
struct less<amdinfer::RequestParameters>

Overload the “less than” operator so we can compare two RequestParameter objects. We need this functionality to store objects of this class in a map. Note, since hashing is not implemented, these objects cannot be stored in an unordered_map.

Public Functions

inline bool operator()(const amdinfer::RequestParameters &lhs, const amdinfer::RequestParameters &rhs) const

Implementation of the comparison of two RequestParameter objects. We compare the size and then check each key is present and finally, compare the key values. The types supported in RequestParameters all support direct comparison with the “less than” operator already.

Parameters
  • lhs – the RequestParameter object on the left-hand-side

  • rhs – the RequestParameter object on the right-hand-side

Returns

bool