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
48 inline double stod(std::string_view str,
size_t *pos)
50 return std::stod(std::string(str.data(), str.size()),pos);
56 #endif // ifdef else R__HAS_STD_STRING_VIEW
71 #endif // RStringView_H
TStringView(const char *cstr, size_t len)
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