AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::Releasable Concept Reference

#include <resourcePool.hpp>

Concept definition

template<typename T>
concept Releasable = requires(T& object) {
object.release();
}
Definition resourcePool.hpp:58

Detailed Description

Concept of resources which have to be released when they are returned to their pool.
When a pooled resource implements void release(), it is called before validation each time the resource is returned to the pool (an exception invalidates the resource).

Author
Vincent Lachenal
Since
0.2