Blog
-
C++ Atomic | A Complete Guide to Memory Order
This is a development blog post summarizing C++ Atomic. #include <atomic> #include <thread> using namespace std;.
-
C++ Atomic Operations | 'Atomic Operations' Guide
C++ std::atomic and how to prevent data races in multithreads using atomic operations. Explains the advantages over mutexes and practical code patterns.
-
C++ auto Keyword | Type Deduction Complete Guide
Use the C++ auto keyword for type deduction: fewer repeated type names, deduction rules, iterators, lambdas, and pitfalls. Practical guide for modern C++.
-
C++ std::bind | Placeholders and partial application
std::bind is a function introduced in C++11 that creates a new function object by pre-binding a function and its arguments.
-
C++ Buffer Overflows: Causes, Safe APIs, and Security Impact
Buffer overflows in C and C++: strcpy, memcpy, stack and heap corruption, ASan, strncpy vs string, bounds checks, and secure coding patterns.
-
C++ Cache Optimization: Locality, False Sharing, SoA vs AoS
Improve CPU cache efficiency in C++: spatial locality, matrix layout, struct packing, prefetching, blocking, false sharing, and alignment for SIMD.
-
C++ Casting
C++ casting complete guide: static_cast, dynamic_cast, const_cast, reinterpret_cast. Master principles, code examples, and practical applications.
-
C++ Chrono Complete Guide | 'Time' Library Complete Guide
Development blog post summarizing C++ Chrono. #include <chrono> #include <iostream> using namespace std; using namespace chrono;.
-
C++ CMake Quick Start | Minimal CMakeLists
Short CMake tutorial for C++: minimal CMakeLists.txt, static/shared libs, subdirectories, install—stepping stone to full CMake and cross-platform builds.
-
C++ Coding Test Tips — Complete Guide
Practical C++ habits for competitive programming judges - fast I/O, common STL patterns, and mistakes that cause TLE or wrong answers on Baekjoon-style problems.