rutz::static_stack< T, N > Class Template Reference

STL-style class for fixed-size stacks whose size is known at compile time. More...

#include <rutz/staticstack.h>

Inheritance diagram for rutz::static_stack< T, N >:

Inheritance graph
[legend]
Collaboration diagram for rutz::static_stack< T, N >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef T * iterator
typedef const T * const_iterator

Public Member Functions

 static_stack (const static_stack &other) throw ()
static_stackoperator= (const static_stack &other) throw ()
unsigned int size () const throw ()
bool push (T p) throw ()
void pop () throw ()
top () const throw ()
at (unsigned int i) const throw ()
operator[] (unsigned int i) const throw ()
iterator begin () throw ()
iterator end () throw ()
const_iterator begin () const throw ()
const_iterator end () const throw ()

Static Public Member Functions

static unsigned int capacity () throw ()


Detailed Description

template<typename T, unsigned int N>
class rutz::static_stack< T, N >

STL-style class for fixed-size stacks whose size is known at compile time.

Because this class doesn't rely on dynamically-allocated memory, it can be both highly efficient and exception-safe.

Definition at line 46 of file staticstack.h.


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

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:46 2008 by Doxygen version 1.5.5.