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> >
32 using basic_string_view = ::std::experimental::basic_string_view<_CharT,_Traits>;
47 #ifndef R__HAS_STOD_STRING_VIEW
48 inline double stod(std::string_view str,
size_t *pos)
50 return std::stod(str.to_string(),pos);
56 #endif // ifdef else R__HAS_STD_STRING_VIEW
58 #endif // RStringView_H
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