Problem Solving with C++ (9th Edition)
Problem Solving with C++ (9th Edition)
9th Edition
ISBN: 9780133591743
Author: Walter Savitch
Publisher: PEARSON
Question
Book Icon
Chapter 18.2, Problem 9STE
Program Plan Intro

STL Basic sequential containers:

“slist”:

  • The template class for “slist” class is “<slist>”
  • The template class for “slist” is “slist<T>::iterator”.
    • This class uses mutable and forward iterator.
  • The template class for constant iterator is “slist<T>::const_iterator”.
    • This class uses constant and forward iterator.

“list”:

  • The template class for “list” class is “<list>”
  • The template class for “list” is “list<T>::iterator”.
    • This class uses mutable and bidirectional iterator.
  • The template class for constant iterator is “list<T>::const_iterator”.
    • This class uses constant and bidirectional iterator.
  • The template class for reverse iterator is “list<T>::reverse_iterator”.
    • This class uses mutable and bidirectional iterator.
  • The template class for constant reverse iterator is “list<T>::const_reverse_iterator”.
    • This class uses constant and bidirectional iterator.

vector”:

  • The template class for “vector” class is “<vector>”
  • The template class for “vector” is “vector<T>::iterator”.
    • This class uses mutable, random, and access iterator.
  • The template class for constant iterator is “vector<T>::const_iterator”.
    • This class uses constant, random, and access iterator.
  • The template class for reverse iterator is “vector<T>::reverse_iterator”.
    • This class uses mutable, random, and access iterator.
  • The template class for constant reverse iterator is “vector<T>::const_reverse_iterator”.
    • This class uses constant, random, and access iterator.

“deque”:

  • The template class for “deque” class is “<deque>”
  • The template class for “deque” is “deque<T>::iterator”.
    • This class uses mutable, random, and access iterator.
  • The template class for constant iterator is “deque<T>::const_iterator”.
    • This class uses constant, random, and access iterator.
  • The template class for reverse iterator is “deque<T>::reverse_iterator”.
    • This class uses mutable, random, and access iterator.
  • The template class for constant reverse iterator is “deque<T>::const_reverse_iterator”.
    • This class uses constant, random, and access iterator.

Blurred answer
Students have asked these similar questions
Answer for.Write a Python Code for the given constructor and conditions: Given Constructor: def __init__ (self, a)   Pre-condition: Array cannot be empty. Post-condition: This is the default constructor of MyList class. This constructor creates a list from an array..
This in c++.
How does the function insertFirst of the class unorderedLinkedList differ from the function insertFirst of the class orderedLinkedList.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education