whitespider
Programmer
I'm a brasilian. So please excuse me any mistakes.
Does anybody knows how this templates works? I got this example in the web, and voila it works properly. But I have no idea how. I am new in C++ ( I used to program in Delphi) but my new job requires a deep knowledge in C++.
Can you help me please?!
The templates supposedly gets the size of an array (not in bytes) but in number of elements.
template <typename T, int N>
char (&len(T(&)[N]))[N];
thanks anyway
Does anybody knows how this templates works? I got this example in the web, and voila it works properly. But I have no idea how. I am new in C++ ( I used to program in Delphi) but my new job requires a deep knowledge in C++.
Can you help me please?!
The templates supposedly gets the size of an array (not in bytes) but in number of elements.
template <typename T, int N>
char (&len(T(&)[N]))[N];
thanks anyway