Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

CPP3 - C++ STL & operator overloading

operatorovld.cpp

Video (20:21): - Example of operator overloading

Note that while we only overload the +, <, >, and << operators in this video, those are not the only operators you can overload. See the C++ information page for a list of operators you can overload.

vdestruct.cpp

Video (6:00): Demonstrates constructors and destructors get called and why destructors need to be declared virtual

vector.cpp

C++ Vectors In general, you should always prefer using the STL classes when you can. Use vectors - especially instead of creating arrays with new.

vector2.cpp

Video (12:20): Vectors of user-defined objects

In this video I show an example of using a vector to store objects of a custom class. You should review the other vector videos first so that you understand how vectors work.

map.cpp

Video (8:43): C++ Maps

map2.cpp

NO VIDEO : Another example of using C++ Maps

algorithm.ccp

Video (13:45): Methods from the C++ algorithms library

Note that the examples of any_of, any_of, none_of all use lambdas which we haven't covered yet. For now, just keep in mind that the lambda function is contained between the braces, so you can update that part to have it do what you want.