Summary
Here's a summary of everything we learned in this chapter!
This chapter showed how to use two sets of functions from_chars
- to convert strings into numbers,
and to_chars
that converts numbers into their textual representations.
The functions might look very raw and even C-style. This is a “price” you have to pay for having such low-level support, performance, safety, and flexibility. The advantage is that you can provide a simple wrapper that exposes only the needed parts that you want.
Extra Info: The change was proposed in: P0067.
Get hands-on with 1400+ tech skills courses.