string_view.hpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // Copyright (c) 2019 Vinnie Falco ([email protected])
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // Official repository: https://github.com/boostorg/url
  8. //
  9. #ifndef BOOST_URL_STRING_VIEW_HPP
  10. #define BOOST_URL_STRING_VIEW_HPP
  11. #include <boost/url/detail/config.hpp>
  12. #include <boost/url/detail/string_view.hpp>
  13. namespace boost {
  14. namespace urls {
  15. /** The type of string_view used by the library
  16. String views are used to pass character
  17. buffers into or out of functions. Ownership
  18. of the underlying character buffer is not
  19. transferred; the caller is responsible for
  20. ensuring that the lifetime of character
  21. buffer extends until it is no longer
  22. referenced.
  23. @warning This alias is no longer supported and
  24. should not be used in new code. Please use
  25. `core::string_view` instead.
  26. This alias is included for backwards
  27. compatibility with earlier versions of the
  28. library.
  29. However, it will be removed in future releases,
  30. and using it in new code is not recommended.
  31. Please use the updated version instead to
  32. ensure compatibility with future versions of
  33. the library.
  34. */
  35. using string_view
  36. BOOST_URL_DEPRECATED("Use core::string_view instead") =
  37. boost::core::string_view;
  38. } // urls
  39. } // boost
  40. #endif