File indexing completed on 2025-12-15 09:54:14
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_JSON_STRING_VIEW_HPP
0011 #define BOOST_JSON_STRING_VIEW_HPP
0012
0013 #include <boost/json/detail/config.hpp>
0014 #include <boost/core/detail/string_view.hpp>
0015 #include <type_traits>
0016 #ifndef BOOST_NO_CXX17_HDR_STRING_VIEW
0017 # include <string_view>
0018 #endif
0019
0020 namespace boost {
0021 namespace json {
0022
0023 #ifdef BOOST_JSON_DOCS
0024
0025
0026
0027
0028
0029
0030 using string_view = __see_below__;
0031
0032 #else
0033
0034 using string_view = boost::core::string_view;
0035
0036 #endif
0037
0038 namespace detail {
0039
0040 template<class T>
0041 using is_string_viewish = typename std::enable_if<
0042 std::is_convertible<
0043 T const&, string_view>::value &&
0044 ! std::is_convertible<
0045 T const&, char const*>::value
0046 >::type;
0047
0048 }
0049
0050 }
0051 }
0052
0053 #endif