Garfield++
3.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
8
namespace
Garfield
{
9
10
inline
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
Garfield
Definition:
HeedChamber.hh:11
Garfield::ltrim
void ltrim(std::string &line)
Definition:
Utilities.hh:10
garfieldpp-3.0
Include
Garfield
Utilities.hh
Generated by
1.9.6