template class dlstreamer::Pool#

#include <pool.h>

template <typename T>
class Pool {
public:
    // construction

    Pool(
        std::function<T()> allocator,
        std::function<bool(T&)> is_available,
        size_t max_pool_size = 0
    );

    // methods

    T get_or_create();
    size_t size();
};