wavelength 1.0.0
Loading...
Searching...
No Matches
vectorutil.h File Reference
#include <vector>
Include dependency graph for vectorutil.h:

Go to the source code of this file.

Functions

template<class T>
void VectorRemove (std::vector< T > &vector, const T &value)
 Remove the first element of a vector equal to a value.
template<class T>
T * VectorFind (std::vector< T > &vector, const T &value)
 Find the first element of a vector equal to a value.

Function Documentation

◆ VectorRemove()

template<class T>
void VectorRemove ( std::vector< T > & vector,
const T & value )

Remove the first element of a vector equal to a value.

The online session instantiates the template for int and for HostpadRT::ClientData, in that order.

Parameters
vectorThe vector.
valueThe value.
Ghidra address:
NTSC-U/C: 0x0025aec0
Ghidra address:
PAL: 0x00263f10
Ghidra address:
NTSC-U/C: 0x0025af40
Ghidra address:
PAL: 0x00263f90

◆ VectorFind()

template<class T>
T * VectorFind ( std::vector< T > & vector,
const T & value )

Find the first element of a vector equal to a value.

The online session instantiates the template for HostpadRT::ClientData.

Parameters
vectorThe vector.
valueThe value.
Returns
The element, or null.
Ghidra address:
NTSC-U/C: 0x0025afe0
Ghidra address:
PAL: 0x00264030