In this recipe, we will learn how to add APIs from std::set to the custom container we created in the first recipe. Specifically, we will learn why std::vector::push_back() and std::vector::emplace_back() do not make sense when used with our custom container that always maintains its internal elements in sorted order.
Adding the relevant parts of the std::set API
Getting ready
Before beginning, please ensure that all of the technical requirements are met, including the installation of Ubuntu 18.04 or higher and running the following in a terminal window:
> sudo apt-get install build-essential git cmake
This will ensure that your operating system has the proper tools to compile and execute the examples in this recipe. Once...