#include <KeyValuesData.h>
std::optional< T > | operator() (std::string const &s) const |
|
static std::optional< T > | convert (std::string const &s) |
|
template<typename T, typename Enable = void>
struct icarus::details::KeyValuesConverter< T, Enable >
Definition at line 32 of file KeyValuesData.h.
template<typename T , typename Enable = void>
Definition at line 823 of file KeyValuesData.h.
825 if constexpr (std::is_arithmetic_v<T>) {
827 char const *b =
s.data(), *
e = b +
s.length();
828 return (std::from_chars(b,
e, number).ptr ==
e)
829 ? std::make_optional(number):
std::nullopt;
831 else if constexpr(std::is_constructible_v<T, std::string>){
832 return std::make_optional(T{
s });
834 else return std::nullopt;
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
then echo File list $list not found else cat $list while read file do echo $file sed s
template<typename T , typename Enable = void>
Convert a string s
into a type T
; may return std::nullopt
on "non-fatal" failure.
Definition at line 820 of file KeyValuesData.h.
then echo File list $list not found else cat $list while read file do echo $file sed s
static std::optional< T > convert(std::string const &s)
The documentation for this struct was generated from the following file: