This symbol placed after a parameter's data type causes the parameter to be passed by reference.
This special member function is used to instantiate an object.
What is a constructor?
This operator accesses the value stored at the memory address contained in a pointer.
What is the deref operator *? (If you say asterisk, I'll give it to you)
Similar to an array, this data structure holds a number of elements.
What is a vector?
This keyword is used when a program signals that an exception has occurred.
What is throw?
This type of loop is commonly used when you know beforehand how many times the body should execute.
What is a for loop?
What is a header file?
This operator is shorthand for dereferencing an object pointer and then accessing one of its members.
What is -> (or arrow operator)?
In order to add an element to this data structure, this command adds it to the very BACK
What is push_back()?
When an exception causes execution to leave a try block, this block can handle the error.
What is a catch block?
Imagine we had a vector with 30 elements. The index of the 30th element is...?
What is the index 29?
What is #include?
The new keyword reserves memory in this region.
What is the heap?
This function allows you to return the number of elements inside of the data structure.
What is size()?
This special type of function calls itself directly, or indirectly to break down problems into smaller, manageable sub problems.
Imagine we called clear() on a vector or map. These are the expected results of size() and empty()
What is 0 and True?
Giving a class several constructors with different parameter lists is called this.
What is constructor overloading?
Forgetting to call delete on dynamically allocated memory can cause this problem.
What is a memory leak?
This function allows you to completely erase the data structure in it's entirety, removing all elements.
What is clear()?
This object-like tool allows a program to move through elements of containers such as vectors and maps.
What is an iterator?
What is pass-by-reference?
This constructor creates a new object using an existing object of the same class.
What is a copy constructor?
Copy constructor, copy assignment operator, and destructor make up this three-part guideline for classes that need special resource handling.
What is the Rule of Three?
Imagine we had class called TimePeriod. Because it uses a TimePeriod object, it has to explicitly define an addition and subtraction operator, which is called this.
What is operator overloading?