Skip to content

CKeyValuePair<TKey,TValue>

CKeyValuePair<TKey,TValue>

The CKeyValuePair<TKey,TValue> class implements a key/value pair.

Description

The CKeyValuePair<TKey,TValue> class implements methods for working with the key and the value of the key/value pair.

Declaration

template<typename TKey, typename TValue>
   class CKeyValuePair : public IComparable<CKeyValuePair<TKey,TValue>*>

Header

#include <Generic\HashMap.mqh>

Inheritance Hierarchy

IEqualityComparable

IComparable

CKeyValuePair

Class Methods

MethodDescription
KeyGets and sets the key in the key/value pair
ValueGets and sets the value in the key/value pair
CloneCreates a new key/value pair whose key and value are equal to the current ones
CompareCompares the current key/value pair to the specified one
EqualsChecks whether the current key/value pair and the specified one are equal
HashCodeCalculates the hash value based on the key/value pair
Last updated on