boost::urls::string_token::preserve_size

Create a string token for a durable core::string_view

Synopsis

template<class Alloc = std::allocator<char>>
/* implementation-defined */
preserve_size(std::basic_string<char, std::char_traits<char>, Alloc>& s);

Description

This function creates a 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.

Return Value

A string token

Parameters

Name

Description

s

The string to preserve

Created with MrDocs