W5: STANDARD LIBRARY Flashcards
W5-Q1: Which NAMESPACE most LIBRARY components are declared and defined in?
std
W5-Q2: Which NAMESPACE the filesystem component is declared and defined in?
filesystem
W5-Q3: Which NAMESPACE the library macros are predefined in?
global
W5-Q4: The String Library provides support for 3 general types of strings. What are they?
_ the string classes
_ the string_view classes
_ null terminated C-style string functions
W5-Q5: The Standard Template Library (STL) consists of?
_ container template classes \+ sequential containers \+ container adaptors \+ associative containers (beyond scope) _ iterators _ algorithms _ function objects
W5-Q6: What does a CONTAINER CLASS represent?
_ represents the shell of a data structure
_ manages the memory associated with the elements of that structure and provides member functions to access those elements.
W5-Q7: What do ITERATORS represent?
facilitate the traversal of the data structure and provide simple access to range of elements.
W5-Q8: What do ALGORITHMS represent?
implement solutions for sequences of elements through the use of iterators and function objects.
W5-Q9: What does a complete programming solution to the implementation of a data structure require?
_ the definition of the data type of each element in the data structure
_ the choice of the optimal data structure to collect the elements
_ the function object for the algorithm to use on the data structure
_ syntax to accesses the facilities of the STL