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.
4
#include "
ftxui/component/task_internal.hpp
"
5
6
namespace
ftxui::task
{
7
bool
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
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
src
ftxui
component
task.cpp
Generated by
1.12.0