Because a pointer is an iterator why didnt the stl


Problem

1. If you could make the mechanical equivalent of a stack that held golf clubs instead of numbers, why would it (conceptually) be a bad golf bag?

2. Why would a set container be a poor choice for storing a hole-by-hole record of your golf scores?

3. Because a pointer is an iterator, why didn't the STL designers simply use pointers instead of iterators?

4. Why didn't the STL designers simply define a base iterator class, use inheritance to derive classes for the other iterator types, and express the algorithms in terms of those iterator classes?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Because a pointer is an iterator why didnt the stl
Reference No:- TGS02639331

Expected delivery within 24 Hours