//+------------------------------------------------------------------+
//| test.mq5 |
//| Copyright 2019, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2019, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
#include <MyMQLLib\Objects\Array\CTuple.mqh>
tuple_value_pack(2,8)<int,double> _test={15,0.25};
void OnStart()
{
tuple(2)<int,double>* temp=_test.GetTuple();
tuple(2)<int,double> temp_2=temp;
Alert("Size: ",sizeof(_test));
Alert(temp_2==_test);
Alert(temp.Item1);
Alert(temp.Item2);
delete temp;
}
//+------------------------------------------------------------------+
Comments