FastCollectionsByLeo/Src/ColHash/Hash/Def.mqh

36 lines
1.5 KiB
MQL5

//+------------------------------------------------------------------+
//| Def.mqh |
//| Copyright 2026, Niquel Mendoza |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, Niquel Mendoza"
#property link "https://www.mql5.com"
#property strict
#ifndef FASTCOLLECTIONSBYLEO_COLHASH_HASH_GENERIC_DEF_MQH
#define FASTCOLLECTIONSBYLEO_COLHASH_HASH_GENERIC_DEF_MQH
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
namespace TSN
{
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
template <typename TValue>
class CGenericHash_eq_simple
{
public:
CGenericHash_eq_simple() {}
~CGenericHash_eq_simple() {}
static __forceinline bool Eq(TValue a, TValue b) { return a == b; }
template <typename TPar>
static __forceinline void Assing(TPar& a, TPar& b) { a = b; }
};
}
//+------------------------------------------------------------------+
#endif // FASTCOLLECTIONSBYLEO_COLHASH_HASH_GENERIC_DEF_MQH
//+------------------------------------------------------------------+