1

allow vector to be lazy init if alloc not avail

This commit is contained in:
2022-07-24 02:22:43 +02:00
parent a0fd7ea1a4
commit b0b6ec13dc
6 changed files with 54 additions and 41 deletions

View File

@ -17,7 +17,11 @@ private:
bse::vector<KeyEventListener*> listeners;
public:
KeyEventManager() : log("KEvMan") {}
KeyEventManager() : log("KEvMan"), listeners(true) {}
void init() {
listeners.reserve();
}
void subscribe(KeyEventListener& sub);
void unsubscribe(KeyEventListener& unsub);