mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
21 lines
668 B
C++
21 lines
668 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(const CSequence<CPropertyIndex> &other) : CSequence<CPropertyIndex>(other) {}
|
|
|
|
CPropertyIndexList CPropertyIndexList::copyFrontRemoved() const
|
|
{
|
|
if (this->size() < 2) { return {}; }
|
|
CPropertyIndexList copy(*this);
|
|
copy.pop_front();
|
|
return copy;
|
|
}
|
|
|
|
} // namespace swift::misc
|