Blog
-
C++ file I/O | ifstream, ofstream, and binary reads/writes
Read and write files with fstream: open modes, text vs binary on Windows, CSV and logging examples, binary struct saves, error checks, and large-file pa...
-
C++ Flyweight Pattern Complete Guide | Save Memory Through Sharing
C++ Flyweight Pattern Complete Guide. Structural pattern that shares common state (intrinsic) and keeps individual state (extrinsic) separate to reduce ...
-
C++ function objects | Functors, operator(), and STL algorithms
What functors are, stateful vs function pointers, STL algorithms with predicates, comparison functors, and std::function overhead vs templates.
-
C++ Function Overloading: Rules, Ambiguity, and Name Mangling
Learn C++ function overloading: same name, different parameters. Resolution rules, common ambiguities, default arguments, and how it ties to name mangling.
-
C++ future and promise | 'Asynchronous' guide
Everything about C++ future and promise : from basic concepts to practical applications. Master key content quickly with examples.'asynchronous' guide. ...
-
C++ Heap Corruption: Double Free, Wrong delete[], and Detection
Heap corruption in C++: buffer overruns, double delete, delete vs delete[], use-after-free, ASan and Valgrind, and RAII patterns to stay safe.
-
C++ Include Paths: #include '...' vs <...>, -I, and CMake
How the compiler searches for headers: angle vs quotes, -I order, CMake target_include_directories, and fixing “No such file or directory” errors.
-
C++ Inheritance & Polymorphism: virtual, Interfaces, and Patterns
C++ inheritance and polymorphism: public inheritance, virtual functions, abstract classes, virtual destructors, slicing, template method, and compositio...
-
C++ Initialization Order: Static Fiasco, Members, and TU Rules
C++ initialization phases: zero, constant, dynamic; per-TU vs cross-TU order; member order vs initializer list; static initialization order fiasco; Meye...
-
C++ std::initializer_list | Brace Lists for Functions and Containers
std::initializer_list (C++11) is a lightweight view over a brace-enclosed list. Used for container init and variadic-like APIs—not a full container; wat...