arrays.h File Reference

#include "rutz/algo.h"
#include "rutz/atomic.h"
#include <cstddef>

Include dependency graph for arrays.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  rutz

Classes

class  rutz::out_of_range
 Exception class for range errors. More...
struct  rutz::static_block< T, N >
 A simple wrapper around a C-style array. More...
class  rutz::fixed_block< T >
 A dynamically-allocated array whose size is fixed at construction. More...
class  rutz::shared_array< T >
 A reference-counted smart pointer for arrays. More...
class  rutz::dynamic_block< T >
 A dynamically-allocated array whose size may be changed at runtime. More...

Functions

template<class T, std::size_t N>
T * rutz::array_begin (T(&array)[N])
 Get a pointer to the beginning of a C-style array.
template<class T, std::size_t N>
T * rutz::array_end (T(&array)[N])
 Get a pointer to the one-past-the-end of a C-style array.
template<class T, std::size_t N>
const T * rutz::array_begin (T const (&array)[N])
 Get a pointer to the beginning of a C-style const array.
template<class T, std::size_t N>
const T * rutz::array_end (T const (&array)[N])
 Get a pointer to the one-past-the-end of a C-style const array.
template<typename T>
bool rutz::operator== (const shared_array< T > &a, const shared_array< T > &b)
 Equality for shared_array; returns true if both have the same pointee.
template<typename T>
bool rutz::operator!= (const shared_array< T > &a, const shared_array< T > &b)
 Inequality for shared_array; returns true if each has different pointees.


Detailed Description

STL-style array classes similar to std::vector but much more lightweight

Definition in file arrays.h.


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