text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

example235.cpp File Reference


Detailed Description

Example of using the STL class list to store a list of pointers to strings, which are sorted using the function object introduced earlier in this section.

Date:
29 May 2006
Chapter:
Chapter 4
Page:
Page 235
Version:
5.0

Definition in file example235.cpp.

#include <list>
#include <iostream>
#include <string>
#include <new>

Include dependency graph for example235.cpp:

Go to the source code of this file.

Namespaces

namespace  std

Classes

struct  std::greater< string * >

Typedefs

typedef list< string *, allocator<
string * > > 
STRING_PTR

Functions

int main ()


Typedef Documentation

typedef list<string*, allocator<string*> > STRING_PTR
 

Definition at line 24 of file example235.cpp.


Function Documentation

int main  ) 
 

Definition at line 39 of file example235.cpp.

References std::list< T >::begin(), std::list< T >::end(), std::list< T >::insert(), std::list< T >::size(), and std::list< T >::sort().


Generated on Sun Aug 27 13:05:37 2006 for AWLogo by  doxygen 1.4.6