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

Method getSize

Exercises/NoModules/Chapter 17/Soln17_01/Array.h:22–22  ·  view source on GitHub ↗

Function to add new element to the end

Source from the content-addressed store, hash-verified

20 const T& operator[](size_t index) const; // Subscript operator-const arrays
21 void push_back(const T& element); // Function to add new element to the end
22 size_t getSize() const { return m_size; } // Accessor for m_size
23
24private:
25 T* m_elements; // Array of type T

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected