ALP User Documentation 0.7.0
Algebraic Programming User Documentation
List of all members
argmax< IType, VType > Class Template Reference

The argmax operator on key-value pairs. More...

#include <ops.hpp>

Inherits Operator< internal::argmax< IType, VType > >.

Detailed Description

template<typename IType, typename VType>
class grb::operators::argmax< IType, VType >

The argmax operator on key-value pairs.

Template Parameters
ITypeThe key type.
VTypeThe value type.

This operator is only defined for key-value pairs encapsulated in the STL standard std::pair. The return type equals that of the key type.

This operator returns the key corresponding to the key-value pair whose value evaluates greater than the other.

Warning
If both values are equal, any key may be returned.
See also
argmin
equal_first

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