Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
cschladetsch committed Apr 13, 2024
2 parents c43dfee + 9ed06f4 commit 05101a1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Include/KAI/Core/BuiltinTypes/List.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,25 @@ struct List : Container<List>
}
return false;
}
void Append(Object const &Q);
void PushBack(Object const &Q) { Append(Q); }
Object Pop();
Object PopBack() { return Pop(); }
iterator Erase(iterator A);
iterator Erase(Object const &Q);
bool Contains(Object const &Q) const
{
for (auto const &element : objects)
{
if (element.GetHandle() == Q.GetHandle())
return true;
if (Q.GetClass()->Equals(element)) {
return true;
}
}
return false;
}
>>>>>>> develop

void Erase2(Object Q) { Erase(Q); }
void Append2(Object Q) { Append(Q); }
Expand Down

0 comments on commit 05101a1

Please sign in to comment.