* Get the next item of the sorter. * @return Optional containing the next item, or std::nullopt when there is none. */
| 64 | * @return Optional containing the next item, or std::nullopt when there is none. |
| 65 | */ |
| 66 | std::optional<SQInteger> Next() |
| 67 | { |
| 68 | if (this->IsEnd()) return std::nullopt; |
| 69 | |
| 70 | std::optional<SQInteger> item_current = this->item_next; |
| 71 | this->FindNext(); |
| 72 | return item_current; |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * See if the sorter has reached the end. |