Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C++
Reference
Libraries Reference
MFC
Classes
CList Class
 CList Members

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
MFC Library Reference 
CList Members 

Base Class Members

CObject Members

CList Members

Construction

CList

Constructs an empty ordered list.

Head/Tail Access

GetHead

Returns the head element of the list (cannot be empty).

GetTail

Returns the tail element of the list (cannot be empty).

Operations

AddHead

Adds an element (or all the elements in another list) to the head of the list (makes a new head).

AddTail

Adds an element (or all the elements in another list) to the tail of the list (makes a new tail).

RemoveAll

Removes all the elements from this list.

RemoveHead

Removes the element from the head of the list.

RemoveTail

Removes the element from the tail of the list.

Iteration

GetHeadPosition

Returns the position of the head element of the list.

GetNext

Gets the next element for iterating.

GetPrev

Gets the previous element for iterating.

GetTailPosition

Returns the position of the tail element of the list.

Retrieval/Modification

GetAt

Gets the element at a given position.

RemoveAt

Removes an element from this list, specified by position.

SetAt

Sets the element at a given position.

Insertion

InsertAfter

Inserts a new element after a given position.

InsertBefore

Inserts a new element before a given position.

Searching

Find

Gets the position of an element specified by pointer value.

FindIndex

Gets the position of an element specified by a zero-based index.

Status

GetCount

Returns the number of elements in this list.

GetSize

Returns the number of elements in this list.

IsEmpty

Tests for the empty list condition (no elements).

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker