* @brief Fills the queue with increasing values starting from a given base. */
| 237 | * @brief Fills the queue with increasing values starting from a given base. |
| 238 | */ |
| 239 | void fillRange(const T& start, const T& step = 1) |
| 240 | requires Concepts::Numeric<T> |
| 241 | { |
| 242 | clear(); |
| 243 | for (std::size_t i = 0; i < m_capacity; ++i) |
| 244 | push(start + static_cast<T>(i) * step); |
| 245 | } |
| 246 | |
| 247 | /** |
| 248 | * @brief Inserts an element by copy. Overwrites oldest element if full. |
no outgoing calls
no test coverage detected