|
template<class T > |
int | N (array< T > a) |
| Get the length of the array.
|
|
template<class T > |
T * | A (array< T > a) |
| Get a pointer to the first element of the array.
|
|
template<class T > |
array< T > | copy (array< T > x) |
| Make a copy of an array.
|
|
| CONCRETE_TEMPLATE_CODE (array, class, T) |
|
template<class T > |
tm_ostream & | operator<< (tm_ostream &out, array< T > a) |
| Output the array to an output stream.
|
|
template<class T > |
array< T > & | operator<< (array< T > &a, T x) |
| Append an element to the end of the array.
|
|
template<class T > |
array< T > & | operator<< (array< T > &a, array< T > b) |
| Append an array to the end of another array.
|
|
template<class T > |
bool | contains (T a, array< T > b) |
| Check if an array contains a specified element.
|
|
template<class T > |
array< T > | append (T a, array< T > b) |
| Append an element to the beginning of an array.
|
|
template<class T > |
array< T > | append (array< T > a, array< T > b) |
| Append an array to the end of another array.
|
|
template<class T > |
array< T > | range (array< T > a, int i, int j) |
| Get a subarray of an array.
|
|
template<class T > |
array< T > | reverse (array< T > a) |
| Reverse an array.
|
|
template<class T > |
bool | operator== (array< T > a, array< T > b) |
| Check if two arrays are equal.
|
|
template<class T > |
bool | operator!= (array< T > a, array< T > b) |
| Check if two arrays are not equal.
|
|
template<class T > |
array< T > | operator* (array< T > a, T c) |
| Multiply an array object by a scalar value of type T.
|
|
template<class T > |
array< T > | operator/ (array< T > a, T c) |
| Divide an array object by a scalar value of type T.
|
|
template<class T > |
int | hash (array< T > a) |
| This function computes the hash of an array object a.
|
|
- Copyright
- GPLv3
defines a templated array class representing a fixed-size array of elements.
- Author
- Joris van der Hoeven
- Date
- 1999
Definition in file array.hpp.