MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / Array

Class Array

09.01-stdArray0/main.cpp:8–10  ·  view source on GitHub ↗

#B A non-type template parameter

Source from the content-addressed store, hash-verified

6template<typename T, // #A A type template parameter
7 size_t N> // #B A non-type template parameter
8struct Array {
9 T data[N];
10};
11
12Array<int, // #C Passing int as type parameter
13 5> // #D Passing 5 as non-type parameter

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected