Blog
-
C++ Algorithm Sort: std::sort, stable_sort, partial_sort & nth_element Complete Guide
Compare C++ std::sort, stable_sort, partial_sort, and nth_element: custom comparators, partial sorts, median selection, and practical STL sorting patterns.
-
C++ Allocator | Custom allocators for STL containers
Default std::allocator, passing allocators to containers, custom pool and tracking allocators, PMR monotonic_buffer_resource, and allocator propagation ...
-
C++ Atomic | A Complete Guide to Memory Order
This is a development blog post summarizing C++ Atomic. #include <atomic> #include <thread> using namespace std;. Start now.
-
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++ 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++ 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++ 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.