Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ Array
Method
Array
Examples/NoModules/Chapter 17/Ex17_03/Array.h:30–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
28
// Constructor template
29
template <typename T>
30
Array<T>::Array(size_t size) : m_elements {new T[size] {}}, m_size {size}
31
{}
32
33
// Initializer list constructor template
34
template <typename T>
Callers
nothing calls this directly
Calls
1
size
Method · 0.45
Tested by
no test coverage detected