[#boost-urls-string_view]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::string&lowbar;view
:relfileprefix: ../../
:mrdocs:

The type of string&lowbar;view used by the library

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/string_view.hpp#L45[boost&sol;url&sol;string&lowbar;view&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
using string&lowbar;view = boost::core::string&lowbar;view;
----

== Description

String views are used to pass character buffers into or out of functions&period; Ownership of the underlying character buffer is not transferred&semi; the caller is responsible for ensuring that the lifetime of character buffer extends until it is no longer referenced&period;

[WARNING]
This alias is no longer supported and should not be used in new code&period; Please use `core&colon;&colon;string&lowbar;view` instead&period;

This alias is included for backwards compatibility with earlier versions of the library&period;

However, it will be removed in future releases, and using it in new code is not recommended&period;

Please use the updated version instead to ensure compatibility with future versions of the library&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
