# FTXUI: task.cpp Source File

Loading...
Searching...
No Matches
task.cpp
Go to the documentation of this file.
// Copyright 2024 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.
#include "ftxui/component/task_internal.hpp"
namespace ftxui::task {
bool PendingTask::operator<(const PendingTask& other) const {
if (!time && !other.time) {
return false;
}
if (!time) {
return true;
}
if (!other.time) {
return false;
}
return time.value() > other.time.value();
}
} // namespace ftxui::task
ftxui::task
Definition screen_interactive.hpp:27
ftxui::task::PendingTask
Definition task_internal.hpp:18
ftxui::task::PendingTask::time
std::optional< std::chrono::steady_clock::time_point > time
Definition task_internal.hpp:31
ftxui::task::PendingTask::operator<
bool operator<(const PendingTask &other) const
Definition task.cpp:7
task_internal.hpp