Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -9,26 +9,16 @@ template <typename T>
class CollectionBase
{
public:
void Append(T const & collector)
{
m_collection.push_back(collector);
}
void Append(T const & collector) { m_collection.push_back(collector); }
void AddCollection(CollectionBase<T> const & collection)
{
std::copy(std::begin(collection.m_collection), std::end(collection.m_collection),
std::back_inserter(m_collection));
std::copy(std::begin(collection.m_collection), std::end(collection.m_collection), std::back_inserter(m_collection));
}
std::vector<T> const & GetCollection() const
{
return m_collection;
}
std::vector<T> const & GetCollection() const { return m_collection; }
bool Empty() const
{
return m_collection.empty();
}
bool Empty() const { return m_collection.empty(); }
protected:
std::vector<T> m_collection;