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_string

Return a string representing a kind.

Synopsis

Defined in header <boost/json/kind.hpp>

string_view
to_string(
    kind k);
Description

This provides a human-readable string representing a kind. This may be useful for diagnostics.

Return Value

The string.

Parameters

Name

Description

k

The kind.

Convenience header <boost/json.hpp>


PrevUpHomeNext