Gets the maximum value in the buffer.
| 162 | /// Gets the maximum value in the buffer. |
| 163 | /// </summary> |
| 164 | T Maximum() const |
| 165 | { |
| 166 | ASSERT(HasItems()); |
| 167 | T result = _data[0]; |
| 168 | for (int32 i = 1; i < _count; i++) |
| 169 | { |
| 170 | if (_data[i] > result) |
| 171 | result = _data[i]; |
| 172 | } |
| 173 | return result; |
| 174 | } |
| 175 | |
| 176 | /// <summary> |
| 177 | /// Gets the average value in the buffer. |
no test coverage detected