diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2022-10-09 23:02:54 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2022-11-01 22:36:45 +0100 |
commit | 4d82c7e2704c035e33b9b606c409e5fac0f4f708 (patch) | |
tree | d03922bdf7f9cac0be99605244306bd7ef0f4803 /include/erebos/merge.h | |
parent | c6d01458b4545500a964491c2602da3c3079bfc2 (diff) |
Stored set
Diffstat (limited to 'include/erebos/merge.h')
-rw-r--r-- | include/erebos/merge.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/erebos/merge.h b/include/erebos/merge.h new file mode 100644 index 0000000..bef8212 --- /dev/null +++ b/include/erebos/merge.h @@ -0,0 +1,20 @@ +#pragma once + +#include <erebos/storage.h> + +namespace erebos +{ + +template<class T> struct Mergeable +{ +}; + +template<> struct Mergeable<vector<Stored<Object>>> +{ + using Component = Object; + + static vector<Stored<Object>> components(const vector<Stored<Object>> & x) { return x; } + static vector<Stored<Object>> merge(const vector<Stored<Object>> & x) { return x; } +}; + +} |