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

Method getSize

Exercises/NoModules/Chapter 21/Soln21_06/Array.h:48–48  ·  view source on GitHub ↗

Subscript operator-const arrays

Source from the content-addressed store, hash-verified

46 T& operator[](size_t index); // Subscript operator
47 const T& operator[](size_t index) const; // Subscript operator-const arrays
48 size_t getSize() const { return m_size; } // Accessor for m_size
49 void push_back(T element); // Copy or move element to the back of the array
50
51private:

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected