mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user