Changes to command ownership

This commit is contained in:
Dynamitos committed 2024-04-10 10:23:06 +02:00
1 parent 2a7643ddf3
commit b830fd378c
13 files changed
+216 -200

No files matched your search

+9 -2
View File
@@ -377,13 +377,20 @@ public:
{
return addInternal(std::forward<T>(item));
}
constexpr void addAll(Array other)
constexpr void addAll(const Array& other)
{
for(auto value : other)
for(const auto& value : other)
{
addInternal(value);
}
}
constexpr void addAll(Array&& other)
{
for(auto&& value : other)
{
addInternal(value);
}
}
constexpr reference addUnique(const value_type &item = value_type())
{
iterator it;