|
guanaqo
1.0.0-alpha.24
Utilities for scientific software
|
Duration parsing helpers.
Definition in file duration-parse.hpp.
#include <guanaqo/demangled-typename.hpp>#include <guanaqo/from_chars-wrapper.hpp>#include <chrono>#include <string_view>Go to the source code of this file.
Classes | |
| struct | guanaqo::invalid_duration_value |
| struct | guanaqo::invalid_duration_units |
Namespaces | |
| namespace | guanaqo |
Functions | |
| template<class Rep, class Period> | |
| std::string_view | guanaqo::parse_single_duration (std::chrono::duration< Rep, Period > &t, std::string_view s) |
Adds the first duration in the string s to the duration t. | |
| template<class Rep, class Period> | |
| void | guanaqo::parse_duration (std::chrono::duration< Rep, Period > &t, std::string_view s) |
Adds the sum of the durations in the string s to the duration t. | |