guanaqo develop
Utilities for scientific software
Loading...
Searching...
No Matches
duration-parse.hpp File Reference

Detailed Description

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>
Include dependency graph for duration-parse.hpp:

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.