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

Method getSize

Examples/NoModules/Chapter 17/Ex17_03/Array.h:21–21  ·  view source on GitHub ↗

Subscript operator-const arrays

Source from the content-addressed store, hash-verified

19 T& operator[](size_t index); // Subscript operator
20 const T& operator[](size_t index) const; // Subscript operator-const arrays
21 size_t getSize() const { return m_size; } // Accessor for m_size
22
23private:
24 T* m_elements; // Array of type T

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected