![]() |
Rivet 3.1.9
|
Functions | |
| template<typename T > | |
| T | Rivet::getEnvParam (const std::string name, const T &fallback) |
| Get a parameter from a named environment variable, with automatic type conversion. | |
| template<class T > | |
| vector< T > | Rivet::slice (const vector< T > &v, int startidx, int endidx) |
| Get the contents of a vector between two indices. | |
| T Rivet::getEnvParam | ( | const std::string | name, |
| const T & | fallback | ||
| ) |
Get a parameter from a named environment variable, with automatic type conversion.
Referenced by Rivet::Event::applyProjection().
| vector< T > Rivet::slice | ( | const vector< T > & | v, |
| int | startidx, | ||
| int | endidx | ||
| ) |
Get the contents of a vector between two indices.