Removes all elements from the sequence. The function does not return the memory to the storage, but this memory is reused later when new elements are added to the sequence. This function time complexity is O(1).

C# | Visual Basic | Visual C++ |
public void Clear()
Public Sub Clear
public: void Clear()