C++ Utils  0.1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Static Public Member Functions
utils::ArrayUtils Class Reference

#include <arrayutils.h>

List of all members.

Static Public Member Functions

template<typename T , size_t N>
static size_t size (const T(&a)[N])
template<typename T >
static size_t size (const T(&a)[0])
template<typename T >
static size_t size (const T &a)

Detailed Description

Collection of useful functions for arrays


Member Function Documentation

template<typename T , size_t N>
static size_t utils::ArrayUtils::size ( const T(&)  a[N]) [inline, static]

Size of a static array

Parameters:
aThe array
Returns:
The size (number of elements) of the array
template<typename T >
static size_t utils::ArrayUtils::size ( const T(&)  a[0]) [inline, static]

Size of a zero length static array

Parameters:
aThe array
Returns:
0
template<typename T >
static size_t utils::ArrayUtils::size ( const T &  a) [inline, static]

Size of a container

Parameters:
aA container of any type
Note:
This function has the same signature as the function for static arrays and can be used with automatic template argument deduction.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines