Commit 257b2106 authored by Victor Zverovich's avatar Victor Zverovich

Expand example.

parent 5af2162a
...@@ -59,7 +59,8 @@ Format can be used as a safe portable replacement to ``itoa``: ...@@ -59,7 +59,8 @@ Format can be used as a safe portable replacement to ``itoa``:
.. code-block:: c++ .. code-block:: c++
fmt::Writer w; fmt::Writer w;
w << 42; // replaces itoa(42, buffer, 10) w << 42; // replaces itoa(42, buffer, 10)
w << fmt::hex(42); // replaces itoa(42, buffer, 16)
// access the string using w.str() or w.c_str() // access the string using w.str() or w.c_str()
An object of any user-defined type for which there is an overloaded An object of any user-defined type for which there is an overloaded
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment