mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
23 lines
735 B
C++
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
|