跳至内容

CKeyValuePair<TKey,TValue>

CKeyValuePair<TKey, TValue>

CKeyValuePair<TKey,TValue>类实施键/值对。

描述

CKeyValuePair<TKey,TValue>类实施处理键/值对中的键和值的方法。

声明

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

标题

#include <Generic\HashMap.mqh>

继承体系

IEqualityComparable

IComparable

CKeyValuePair

类方法

方法描述
Key获得和设置键/值对的键
Value获得和设置键/值对的值
Clone创建键和值等于当前键和值的新键/值对
Compare比较当前键/值对和指定键/值对
Equals检查当前键/值对与指定键/值对是否相等
HashCode基于键/值对计算散列值