Generic Data Collections - missing info about Constructors

 

Hi

in the MQL5 Reference I cannot find any information about the constructors of classes that define generic collections.

For example how do I know the constructors of the class CSortedMap? 

You can find this info if you generate a compiler error. But this is a very strange way, isn't it?


#property strict
#include <Generic/SortedSet.mqh>
void OnStart() {
   CSortedSet<int> sset("Give me Info about Constructors please. Thank you");
}

Compile this and you will see:



'CSortedSet<int>' - no one of the overloads can be applied to the function call CtorInfo.mq5 4 20

could be one of 6 function(s) CtorInfo.mq5 4 20

   CSortedSet<int>::CSortedSet<int>(int&[],IComparer<int>*) SortedSet.mqh 27 22

   CSortedSet<int>::CSortedSet<int>(int&[]) SortedSet.mqh 26 22

   CSortedSet<int>::CSortedSet<int>(ICollection<int>*,IComparer<int>*) SortedSet.mqh 25 22

   CSortedSet<int>::CSortedSet<int>(ICollection<int>*) SortedSet.mqh 24 22

   CSortedSet<int>::CSortedSet<int>(IComparer<int>*) SortedSet.mqh 23 22

   CSortedSet<int>::CSortedSet<int>() SortedSet.mqh 22 22

1 errors, 0 warnings  2 1



My maxim is:

Life without docu is possible! 


Matthias

 

Just open the file SortedMap.mqh and have a look...

 
Paul Anscombe:

Just open the file SortedMap.mqh and have a look...

Yes that is another possibility.
But why I cannot find this Info in the MQL5 reference?
 
The MQL5 reference is my reference. 
What else?
 
Sometimes there are comments in the mqh files and maybe there's a book or web tutorial. For specific problems you could search at Stack Overflow they have a MQL section there.
 
lippmaje:
Sometimes there are comments in the mqh files and maybe there's a book or web tutorial. For specific problems you could search at Stack Overflow they have a MQL section there.
Stack Overflow: that is a good idea.
Thanks