FastCollectionsByLeo/Test/HashSet.mq5
2026-07-19 08:34:18 -05:00

29 líneas
1,2 KiB
MQL5

//+------------------------------------------------------------------+
//| HashSet.mq5 |
//| Copyright 2026, Niquel Mendoza. |
//| https://www.mql5.com/ |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, Niquel Mendoza."
#property link "https://www.mql5.com/"
#property version "1.00"
#property strict
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
#include "..\\Src\\ColHash\\Hash\\Generic.mqh"
#include "..\\Src\\ColHash\\HashSet\\Main.mqh"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
CHashSetFast(string) set;
set.Add("hola");
set.Add("como");
set.Add("siuu");
Print(set.Contains("hola"));
}
//+------------------------------------------------------------------+