- Irrelevant for functions. Only applies to class methods.
- It means the method does not modify the object. If you have a constant reference or pointer, you can only call constant methods.
thank you very much :)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Good morning
Can someone explain me what the const before a function does?
does it make a difference if the function returns a fucntion or simple a variable?
I have never used const with functions till now.
But in the mql4 includes it's used a lot.
I'm just curious and want to learn more :)