ug4
array_util.h File Reference
#include <algorithm>

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Functions

template<class TType >
int ug::ArrayEraseEntry (TType *array, const TType &entry, size_t size)
 removes the first occurance of the specified entry. More...
 
template<class TType >
bool ug::ArrayReplaceEntry (TType *array, const TType &newEntry, const TType &oldEntry, size_t size)
 replaces the first occurance of oldEntry with newEntry More...
 
template<class TType >
void ug::ArraySwapWithLast (TType *array, const TType &entry, size_t size)
 Swaps the first entry with the given value with the last entry in the list. More...