Introduction

Let's take a look at the concepts to look forward to in this chapter!

We'll cover the following

string_view is not the only feature that we get in C++17 that relates to strings. While views can reduce the number of temporary copies, there’s also another feature that is very handy: conversion utilities. In the new C++ Standard you have two sets of functions from_chars and to_chars that are low level and promises impressive performance improvements.

What you’ll learn in this chapter

• Why do we need low-level string conversion routines?

• Why might the current options in the Standard Library​ not be enough?

• How to use C++17’s conversion routines

• What performance gains you can expect from the new routines


Let’s get started with elementary string conversions.

Get hands-on with 1200+ tech skills courses.