VectorPro
High-performance, header-only dynamic array with configurable growth policy, custom allocator support, and optional modification-event notifications.
Loading...
Searching...
No Matches
VectorPro::Listener Concept Reference

Constrains listener callbacks usable with Vector:subscribe(). More...

#include <Vector.h>

Concept definition

template<typename F, typename VectorType>
concept VectorPro::Listener = std::invocable<F, const VectorType&, typename VectorType::EventData>
Constrains listener callbacks usable with Vector:subscribe().
Definition Vector.h:54

Detailed Description

Constrains listener callbacks usable with Vector:subscribe().

Template Parameters
FThe callable type being constrained.
VectorTypeThe Vector specialization the listener will observe.

Requires the callable to accept the vector instance and the associated event information, i.e. F(const VectorType&, VectorType::EventData).