Selaa lähdekoodia

test: shared listener type

Michele Caini 2 vuotta sitten
vanhempi
commit
84ce6163a7
1 muutettua tiedostoa jossa 17 lisäystä ja 0 poistoa
  1. 17 0
      test/common/listener.h

+ 17 - 0
test/common/listener.h

@@ -0,0 +1,17 @@
+#ifndef ENTT_COMMON_LISTENER_H
+#define ENTT_COMMON_LISTENER_H
+
+namespace test {
+
+template<typename Type>
+struct listener {
+    void on(Type elem) {
+        value = elem;
+    }
+
+    int value{};
+};
+
+} // namespace test
+
+#endif