In the following code:
template<typename T, int N>
struct Buffer {
using value_type = T;
constexpr int size() { return N; }
T[N];
};
can you explain to me what this line does and what happens if we remove it?
using value_type = T;
In the following code:
template<typename T, int N>
struct Buffer {
using value_type = T;
constexpr int size() { return N; }
T[N];
};
can you explain to me what this line does and what happens if we remove it?
using value_type = T;