C++
Last update: 05. March 2023 (Created: 19. February 2023)C++
-
Unofficial Standard: http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines
-
Delegates:
- https://www.codeproject.com/Articles/1170503/The-Impossibly-Fast-Cplusplus-Delegates-Fixed
- https://www.codeproject.com/Articles/5277036/Asynchronous-Multicast-Delegates-in-Modern-Cpluspl
-
Clang format and clang tidy: http://www.mycpu.org/clang-format/
Static Analysis
cppcheck
- Website: http://cppcheck.net
- Visual Studio Plugin: https://github.com/VioletGiraffe/cppcheck-vs-addin/releases
Build
C++ can be built with CMake.
Documentation
Doxygen can generate documentation from C++ source code.
Callbacks
- https://blog.mbedded.ninja/programming/languages/c-plus-plus/callbacks/
- https://stackoverflow.com/a/12338786
Smart Pointers
Header Files
Includes
// See: https://stackoverflow.com/a/32606280
#include <cstdio> // Should be used, because everything wrapped in std namespace.
#include <stdio.h> // Should not be used, because everything in global namespace.
Exceptions
#include <stdexcept>
try
{
// Code that might throw an exception.
}
catch (std::exception& exception)
{
// Code to deal with the exception.
}
Macros
__func__
gives the name of the current function (with class name). Useful for logging.