Skip to main content

📏 Size

Returns the size of the array.

📝 Syntax

size_t size()

🔮 Example

MovingAveragePlus<unsigned int> intAverage(10);
MovingAveragePlus<unsigned int> anotherAverage(4);

// Will return 10
intAverage.size()

// Will return 4
anotherAverage.size()

⏱ Complexity

Constant (O(1)).