[#boost-urls-string_token-assign_to] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/string_token.adoc[string_token]::assign_to :relfileprefix: ../../../ :mrdocs: Create a string token for assigning to a plain string == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/string_token.hpp#L386[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/assign_to_t.adoc[assign_to_t]<Alloc> assign_to(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 reference to it. [.small]#Created with https://www.mrdocs.com[MrDocs]#