LevelS C++ support library  3.83
Public Member Functions | List of all members
fix_arr< T, sz > Class Template Reference

#include <arr.h>

Public Member Functions

tsize size () const
 
template<typename T2 >
T & operator[] (T2 n)
 
template<typename T2 >
const T & operator[] (T2 n) const
 

Detailed Description

template<typename T, tsize sz>
class fix_arr< T, sz >

An array whose size is known at compile time. Very useful for storing small arrays on the stack, without need for new and delete().

Definition at line 160 of file arr.h.

Member Function Documentation

◆ size()

template<typename T , tsize sz>
tsize fix_arr< T, sz >::size ( ) const
inline

Returns the size of the array.

Definition at line 167 of file arr.h.

◆ operator[]() [1/2]

template<typename T , tsize sz>
template<typename T2 >
T& fix_arr< T, sz >::operator[] ( T2  n)
inline

Returns a reference to element n

Definition at line 170 of file arr.h.

◆ operator[]() [2/2]

template<typename T , tsize sz>
template<typename T2 >
const T& fix_arr< T, sz >::operator[] ( T2  n) const
inline

Returns a constant reference to element n

Definition at line 172 of file arr.h.


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

Generated on Wed Nov 13 2024 12:18:16 for LevelS C++ support library