what is this concept called as:
typename T::size_type Length
I am not able to understand what's going in this line. Can somebody help me with this.
what is this concept called as:
typename T::size_type Length
I am not able to understand what's going in this line. Can somebody help me with this.
By adding typename
before T::size_type
, C++ will treat size_type
as a type, rather than a static member in T
. This is required when you use type members of a template parameter.
Therefore, this line just defines a variable Length
with type T::size_type
.