[#boost-urls-string_token-preserve_size] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/string_token.adoc[string_token]::preserve_size :relfileprefix: ../../../ :mrdocs: Create a string token for a durable core::string_view == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/string_token.hpp#L452[boost/url/grammar/string_token.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Alloc = std::allocator<char>> /* implementation-defined */::xref:boost/urls/string_token/implementation_defined/preserve_size_t.adoc[preserve_size_t]<Alloc> preserve_size(std::basic_string<char, std::char_traits<char>, Alloc>& s); ---- == Description This function creates a xref:boost/urls/string_token/StringToken.adoc[StringToken] which assigns to an existing plain string. Functions using this token will assign the result to the existing string and return a `core::string_view` to it. [.small]#Created with https://www.mrdocs.com[MrDocs]#