MongoDB  2.7.0
Classes | Public Member Functions | List of all members
mongo::List1< T > Class Template Reference
Inheritance diagram for mongo::List1< T >:


class  Base

Public Member Functions

T * head () const
 note this is safe: More...
void push (T *t)
void orphanAll ()
void orphan (T *t)

Member Function Documentation

template<typename T >
T* mongo::List1< T >::head ( ) const

note this is safe:

T* p = mylist.head(); if( p ) use(p);

and this is not:

if( mylist.head() ) use( mylist.head() ); // could become 0

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