Changes to command ownership

This commit is contained in:
Dynamitos
2024-04-10 10:23:06 +02:00
parent 2a7643ddf3
commit b830fd378c
13 changed files with 216 additions and 200 deletions
+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;