15 #include "RConfigure.h" 17 #ifdef R__HAS_STD_STRING_VIEW 19 #include <string_view> 23 # if defined(R__HAS_STD_EXPERIMENTAL_STRING_VIEW) 24 # include <experimental/string_view> 31 template<
class _CharT,
class _Traits = std::
char_traits<_CharT> >
47 #ifndef R__HAS_STOD_STRING_VIEW 50 return std::stod(std::string(str.data(), str.size()),pos);
56 #endif // ifdef else R__HAS_STD_STRING_VIEW 61 const char *fData{
nullptr};
65 explicit TStringView(
const char *cstr,
size_t len) : fData(cstr), fLength(len) {}
71 #endif // RStringView_H
basic_string_view< char > string_view
Namespace for new ROOT classes and functions.
TStringView(const char *cstr, size_t len)
double stod(std::string_view str, size_t *pos)
basic_string_view< char > string_view
basic_string_view< wchar_t > wstring_view
basic_string_view< char32_t > u32string_view
basic_string_view< char16_t > u16string_view