// 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 &other) : CSequence(other) {} CPropertyIndexList CPropertyIndexList::copyFrontRemoved() const { if (this->size() < 2) { return {}; } CPropertyIndexList copy(*this); copy.pop_front(); return copy; } } // namespace swift::misc