Files
pilotclient/src/misc/propertyindexlist.cpp
2024-11-17 09:25:46 +01:00

23 lines
735 B
C++

// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#include "misc/propertyindexlist.h"
SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc, CPropertyIndex, CPropertyIndexList)
namespace swift::misc
{
CPropertyIndexList::CPropertyIndexList() {}
CPropertyIndexList::CPropertyIndexList(const CSequence<CPropertyIndex> &other) : CSequence<CPropertyIndex>(other) {}
CPropertyIndexList CPropertyIndexList::copyFrontRemoved() const
{
if (this->size() < 2) { return CPropertyIndexList(); }
CPropertyIndexList copy(*this);
copy.pop_front();
return copy;
}
} // namespace swift::misc