Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2023. The current version is 1.90.0.
Return the address as a string in dotted decimal format.
template< class StringToken = string_token::return_string> StringToken::result_type to_string( StringToken&& token = {}) const;
When called with no arguments, the return type is std::string.
Otherwise, the return type and style of output is determined by which string
token is passed.
assert( ipv4_address(0x01020304).to_string() == "1.2.3.4" );
Constant.
Strong guarantee. Calls to allocate may throw. String tokens may throw exceptions.
The return type of the string token. If the token parameter is omitted,
then a new std::string is returned. Otherwise, the function
return type is the result type of the token.
|
Name |
Description |
|---|---|
|
|
An optional string token. |