#include "rutz/algo.h"
#include "rutz/atomic.h"
#include <cstddef>
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. |
Definition in file arrays.h.