It does obviously work but why listen to what's going on in my head here so I understand it. So You are using a template which I understand so it could technically be any datatype correct not just an int?
And you have a reference its memory address with &test but then what's then int(&test)[N] so it's like an array it would seem of arrays almost or something? I just don't get that?
I thought with templates you declared the type later with something like <int> in replacement of T or whatever your data was? I'm just not seeing how this is working? Thanks in advance friend.
but you are not using that with N so apparently you don't have to do that with N right or? I'm still a bit confused
In your original post you are speaking about an array of type int. Even your function was named as Get_Int_Array_Length. So there is no need to introduce a template parameter for the type of array elements. The only template parameter that is needed is the parameter for the size of an array.
Vlad from moscow thanks man. See this is a little but confusing because I'm used to using generics in C# more than templates in C++ and while they have similarities you can't do that in C# like (&) [N] so it looks like in in C++ you can do almost anything with templates like that? That's amazing