Garfield++ 4.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
Utilities.hh
Go to the documentation of this file.
1#ifndef G_UTILITIES_H
2#define G_UTILITIES_H
3
4#include <algorithm>
5#include <functional>
6#include <string>
7
8namespace Garfield {
9
10inline void ltrim(std::string& line) {
11 line.erase(line.begin(),
12 find_if(line.begin(), line.end(),
13 [](int ch) {return !std::isspace(ch);}));
14 }
15}
16
17#endif
void ltrim(std::string &line)
Definition: Utilities.hh:10