Skip to content

Arrays and Strings

Data needs to live somewhere, and arrays and strings are the most fundamental containers. In this chapter, we first review the underlying mechanics of C-style arrays—understanding exactly why they are so "bare"—and then jump straight to std::array to experience how sweet zero-overhead abstraction can be. The string section follows a similar path, transitioning from C-style strings to std::string. You will find that handling text in modern C++ is leagues ahead of C.

Chapter Contents

Built with VitePress