Skip to content

mrgloom/CPP-tips-tricks-and-idioms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 

Repository files navigation

C++ tips, tricks, question, idioms, etc.

C++ FAQS

Herb Sutter gotw
https://herbsutter.com/gotw/

Bjarne Stroustrup
http://www.stroustrup.com/bs_faq.html
http://www.stroustrup.com/C++11FAQ.html

https://isocpp.org/faq

Books:

http://www.aristeia.com/books.html

Some topics:

private constructor

swap trick

move semantics
https://stackoverflow.com/questions/3106110/what-are-move-semantics

prevent class inheritance
http://stackoverflow.com/questions/2184133/prevent-class-inheritance-in-c

virtual destructor

virtual inheritance
http://stackoverflow.com/questions/21558/in-c-what-is-a-virtual-base-class

virtual function
http://stackoverflow.com/questions/2391679/why-do-we-need-virtual-functions-in-c

inheritance and default constructor
http://stackoverflow.com/questions/4352169/default-constructor-for-an-inherited-class

private destructor
http://stackoverflow.com/questions/631783/what-is-the-use-of-having-destructor-as-private

operator overloading outside class
https://stackoverflow.com/questions/2425906/operator-overloading-outside-class

volatile keyword

mutable keyword

Patterns

singleton pattern

decorator pattern

factory pattern
detect unused #include files
http://stackoverflow.com/questions/74326/how-should-i-detect-unnecessary-include-files-in-a-large-c-project
http://stackoverflow.com/questions/614794/c-c-detecting-superfluous-includes

Interview questions:

https://github.com/Hawstein/cracking-the-coding-interview

Algorithms:

https://github.com/gzc/CLRS

TO look at:

https://github.com/Mooophy/Cpp-Primer
https://graphics.stanford.edu/~seander/bithacks.html

About

C++ tips tricks and idioms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published