MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / Array

Method Array

Examples/NoModules/Chapter 17/Ex17_02A/Array.h:28–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26// Constructor template
27template <typename T, int startIndex>
28Array<T, startIndex>::Array(size_t size) : m_elements{ new T[size] {} }, m_size{ size }
29{}
30
31// Copy constructor template
32template <typename T, int startIndex>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected