boost::urls::ipv4_address::to_buffer

Write a dotted decimal string representing the address to a buffer

Synopsis

Declared in <boost/url/ipv4_address.hpp>

core::string_view
to_buffer(
    char* dest,
    std::size_t dest_size) const;

Description

The resulting buffer is not null-terminated.

Exceptions

NameThrown on
std::length_errordest_size < ipv4_address::max_str_len

Return Value

The formatted string

Parameters

NameDescription
destThe buffer in which to write, which must have at least dest_size space.
dest_sizeThe size of the output buffer.