62 template<
class Function>
63 explicit Thread(Function && f) : thread([&]{
65 OGDF_ALLOCATOR::flushPool();
69 template<
class Function,
class ... Args>
70 explicit Thread(Function && f, Args && ... args) : thread([&](Args && ... tArgs){
71 f(std::forward<Args>(tArgs)...);
72 OGDF_ALLOCATOR::flushPool();
73 }, std::forward<Args>(args)...) { }
77 thread::operator=(
std::move((thread&&)other));
Declaration of memory manager for allocating small pieces of memory.
const T & move(const T &v)
Basic declarations, included by all source files.
Threads supporting OGDF's memory management.
Thread(Function &&f, Args &&... args)
The namespace for all OGDF objects.
Thread & operator=(Thread &&other)