Gets the minimum value in the buffer.
| 147 | /// Gets the minimum value in the buffer. |
| 148 | /// </summary> |
| 149 | T Minimum() const |
| 150 | { |
| 151 | ASSERT(HasItems()); |
| 152 | T result = _data[0]; |
| 153 | for (int32 i = 1; i < _count; i++) |
| 154 | { |
| 155 | if (_data[i] < result) |
| 156 | result = _data[i]; |
| 157 | } |
| 158 | return result; |
| 159 | } |
| 160 | |
| 161 | /// <summary> |
| 162 | /// Gets the maximum value in the buffer. |
nothing calls this directly
no test coverage detected