STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

list_adaptor Class Template Reference
[Container Library (MFCSTL)]

Adapts MFC List class instances to the STL container concept. More...

#include <mfcstl_list_adaptor.h>

List of all members.

Public Methods

 list_adaptor (C &c)
 Constructs an instance of the list adaptor.

size_type size () const
 Returns the number of elements in the sequence.

ms_bool_t empty () const
 Indicates whether the search sequence is empty.

const_iterator begin () const
 Begins the iteration.

const_iterator end () const
 Ends the iteration.


Static Public Methods

size_type max_size ()
 Returns the maximum number of elements in the sequence.


Detailed Description

template<class C, class T = list_adaptor_traits<C>>
class mfcstl::list_adaptor< C, T >

Adapts MFC List class instances to the STL container concept.

This class takes a container type, e.g. CStringList, as its primary (and only non-default) template argument, C. The second template parameter, T, defaults to list_adaptor_traits<C>, for which specialisations are provided for the following types

and for compilers that support partial specialisation

Parameters:
C  The container type
T  The traits type. With translators that support default template arguments, this is defaulted to list_adaptor_traits<C>


Constructor & Destructor Documentation

list_adaptor C &    c [inline, explicit]
 

Constructs an instance of the list adaptor.

Parameters:
c  An instance of the list class


Member Function Documentation

const_iterator begin   const [inline]
 

Begins the iteration.

Returns:
An iterator representing the start of the sequence

ms_bool_t empty   const [inline]
 

Indicates whether the search sequence is empty.

const_iterator end   const [inline]
 

Ends the iteration.

Returns:
An iterator representing the end of the sequence

size_type max_size   [inline, static]
 

Returns the maximum number of elements in the sequence.

size_type size   const [inline]
 

Returns the number of elements in the sequence.


The documentation for this class was generated from the following file:

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004