string_view.hpp 885 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
  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. */
  24. typedef boost::core::string_view string_view;
  25. } // urls
  26. } // boost
  27. #endif