FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
task.cpp
Go to the documentation of this file.
1// Copyright 2024 Arthur Sonzogni. All rights reserved.
2// Use of this source code is governed by the MIT license that can be found in
3// the LICENSE file.
5
6namespace ftxui::task {
7bool PendingTask::operator<(const PendingTask& other) const {
8 if (!time && !other.time) {
9 return false;
10 }
11 if (!time) {
12 return true;
13 }
14 if (!other.time) {
15 return false;
16 }
17 return time.value() > other.time.value();
18}
19} // namespace ftxui::task
std::optional< std::chrono::steady_clock::time_point > time
bool operator<(const PendingTask &other) const
Definition task.cpp:7