Adding the relevant parts of the std::set API

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset