util/IntrusiveSortedList, event/TimerList: include cleanup

This commit is contained in:
Max Kellermann 2023-04-06 10:22:47 +02:00
parent 53ec02d5e9
commit 76497bd5f7
2 changed files with 3 additions and 5 deletions

View File

@ -2,13 +2,9 @@
// Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#include "Loop.hxx"
#include "TimerList.hxx"
#include "FineTimerEvent.hxx"
#ifdef NO_BOOST
#include <algorithm>
#endif
constexpr bool
TimerList::Compare::operator()(const FineTimerEvent &a,
const FineTimerEvent &b) const noexcept

View File

@ -5,6 +5,8 @@
#include "IntrusiveList.hxx"
#include <algorithm> // for std::find_if()
/**
* A variant of #IntrusiveList which is sorted automatically. There
* are obvious scalability problems with this approach, so use with