listsstacksand queues object operator[]int index return objectsindex ]const object operator[]int index const return objectsindex ]bool emptyconst return size= int sizeconst return thesizeint capacityconst return thecapacityvoid push_backconst object ifthesize =thecapacity reserve thecapacity )objectsthesize+xvoid push_backobject & ifthesize =thecapacity reserve thecapacity )objectsthesize+std::movex )void pop_back--thesizeconst object back const return objectsthesize ]typedef object iteratortypedef const object const_iteratoriterator beginreturn &objects ]const_iterator beginconst return &objects ]figure vector class (part of