|
|
|
@@ -135,8 +135,7 @@ public: |
|
|
|
}
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
/** Returns the current number of elements in the set.
|
|
|
|
*/
|
|
|
|
/** Returns the current number of elements in the set. */
|
|
|
|
inline int size() const noexcept
|
|
|
|
{
|
|
|
|
return data.size();
|
|
|
|
@@ -185,7 +184,6 @@ public: |
|
|
|
}
|
|
|
|
|
|
|
|
/** Returns the first element in the set, or 0 if the set is empty.
|
|
|
|
|
|
|
|
@see operator[], getUnchecked, getLast
|
|
|
|
*/
|
|
|
|
inline ElementType getFirst() const noexcept
|
|
|
|
@@ -194,7 +192,6 @@ public: |
|
|
|
}
|
|
|
|
|
|
|
|
/** Returns the last element in the set, or 0 if the set is empty.
|
|
|
|
|
|
|
|
@see operator[], getUnchecked, getFirst
|
|
|
|
*/
|
|
|
|
inline ElementType getLast() const noexcept
|
|
|
|
@@ -448,7 +445,8 @@ public: |
|
|
|
If you need to exchange two arrays, this is vastly quicker than using copy-by-value
|
|
|
|
because it just swaps their internal pointers.
|
|
|
|
*/
|
|
|
|
void swapWith (SortedSet& otherSet) noexcept
|
|
|
|
template <class OtherSetType>
|
|
|
|
void swapWith (OtherSetType& otherSet) noexcept
|
|
|
|
{
|
|
|
|
data.swapWith (otherSet.data);
|
|
|
|
}
|
|
|
|
|