[#boost-urls-grammar-string_view_base-2conversion-06]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::xref:boost/urls/grammar/string_view_base.adoc[string&lowbar;view&lowbar;base]::operator std::string
:relfileprefix: ../../../../
:mrdocs:

Conversion

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
operator std::string() const;
----

== Description

Conversion to std&colon;&colon;string is explicit because assigning to string using an implicit constructor does not preserve capacity&period;

== Return Value

A string with the same contents


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