Cytopia  0.3
A city building simulation game
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GameClock.cxx File Reference
#include <cassert>
#include "GameClock.hxx"
+ Include dependency graph for GameClock.cxx:

Go to the source code of this file.

Functions

template<typename Queue >
static bool removeTaskFromQueue (const GameClock::ClockTaskHndl hndl, Queue &queue)
 

Function Documentation

◆ removeTaskFromQueue()

template<typename Queue >
static bool removeTaskFromQueue ( const GameClock::ClockTaskHndl  hndl,
Queue &  queue 
)
static

Definition at line 36 of file GameClock.cxx.

37 {
38  return queue.erase_if([hndl](const typename Queue::value_type &ct) { return ct.hndl == hndl; }) > 0;
39 }
+ Here is the caller graph for this function: