listsstacksand queues #include template class vector publicexplicit vectorint initsize thesizeinitsize }thecapacityinitsize spare_capacity objects new objectthecapacity ]vectorconst vector rhs thesizerhs thesize }thecapacityrhs thecapacity }objectsnullptr objects new objectthecapacity ]forint thesize++ objectsk rhs objectsk ]vector operatorconst vector rhs vector copy rhsstd::swap*thiscopy )return *this~vectordelete objectsvectorvector &rhs thesizerhs thesize }thecapacityrhs thecapacity }objectsrhs objects rhs objects nullptrrhs thesize rhs thecapacity vector operatorvector &rhs std::swapthesizerhs thesize )std::swapthecapacityrhs thecapacity )std::swapobjectsrhs objects )return *thisfigure vector class (part of