Blog
-
C++ auto Type Deduction | Let the Compiler Handle Complex Types
C++ auto type deduction guide. auto is a C++11 keyword that lets the compiler deduce variable types from initializers. Used to shorten iterators, lambda...
-
C++ Barrier & Latch | Complete Guide to std::barrier and latch Synchronization
Implement thread synchronization with C++20 std::barrier and std::latch. Complete guide to one-time countdown, repeated synchronization, and completion ...
-
C++ Benchmarking: chrono, Warmup, Statistics, and Google Benchmark
Benchmark C++ code reliably: high_resolution_clock, warmup runs, mean/median/stddev, Google Benchmark, and pitfalls like compiler elision and cache effe...
-
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. It is used for partial appli...
-
C++ Bit Manipulation | Complete 'Bitmask' Guide
Bit operations (AND, OR, XOR, shift) are low-level techniques used for flags, bitmasks, and algorithm optimization. This guide explains operator meaning...
-
C++ bitset | 'Bit Set' Guide
This is a bitset guide that summarizes the basics of bit operations, bitset vs vector<bool>, masking, permutation, and combination patterns, and perform...
-
C++ Branch Prediction | Complete Guide to likely/unlikely Optimization
C++ branch prediction: CPU pipeline, misprediction penalty, [[likely]]/[[unlikely]], branch elimination, sorting effects, and PGO with practical examples.
-
C++ Bridge Pattern Complete Guide | Separate Implementation and Abstraction for Extensibility
Complete C++ Bridge pattern guide. Structural pattern that separates implementation (Implementor) and abstraction (Abstraction) to enable swappable plat...
-
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.