mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 03:34:45 +02:00
Expand example.
This commit is contained in:
@@ -60,6 +60,7 @@ Format can be used as a safe portable replacement to ``itoa``:
|
||||
|
||||
fmt::Writer w;
|
||||
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()
|
||||
|
||||
An object of any user-defined type for which there is an overloaded
|
||||
|
Reference in New Issue
Block a user