Manipulation and Transformation
This chapter discusses data manipulation techniques provided by the C++ Standard Template Library (STL). These techniques of manipulating data structures, whether copying, generating new data, removing outdated entries, or performing advanced operations such as swapping or reversing, form a significant part of most applications. This chapter will expose you to many methods and nuances, allowing you to choose the right tool for your tasks. Accompanied by best practices, this chapter ensures you understand and apply these techniques efficiently.
This chapter will cover the following main topics:
- Copying and moving in STL containers
- Exploring return value optimization
- Filling and generating in STL containers
- Removing and replacing in STL containers
- Swapping and reversing in STL containers
- Best practices