intnslib 0.1
A library to hold common functionality used across multiple projects.
Loading...
Searching...
No Matches
intns::memory::AcquireHook Concept Reference

Concept to check if a type supports the acquire hook. Type T must implement Policy::on_acquire(T&), which is noexcept. More...

#include <ObjectPool.hpp>

Concept definition

template<typename Policy, typename T>
concept intns::memory::AcquireHook = requires(T& obj) {
{ Policy::on_acquire(obj) } noexcept;
}
Concept to check if a type supports the acquire hook. Type T must implement Policy::on_acquire(T&),...
Definition ObjectPool.hpp:20

Detailed Description

Concept to check if a type supports the acquire hook. Type T must implement Policy::on_acquire(T&), which is noexcept.

Template Parameters
TThe type to check for the acquire hook.