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 the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

to_static_string

Returns a static string representing an integer as a decimal.

Synopsis

Defined in header <boost/beast/core/static_string.hpp>

template<
    class Integer>
static_string< detail::max_digits(sizeof(Integer))>
to_static_string(
    Integer x);
Description
Parameters

Name

Description

x

The signed or unsigned integer to convert. This must be an integral type.

Return Value

A static_string with an implementation defined maximum size large enough to hold the longest possible decimal representation of any integer of the given type.

Convenience header <boost/beast/core.hpp>


PrevUpHomeNext