]> git.stg.codes - stg.git/blob - include/stg/notifer.h
More subscriptions, less notifiers.
[stg.git] / include / stg / notifer.h
1 #pragma once
2
3 namespace STG
4 {
5
6 template <typename... Ts>
7 struct NotifierBase
8 {
9     virtual ~NotifierBase() = default;
10
11     virtual void notify(const Ts&... values) = 0;
12 };
13
14 template <typename T>
15 using PropertyNotifierBase = NotifierBase<T, T>;
16
17 }