Blog
-
C++ Branch Prediction — Complete Guide
C++ branch prediction: CPU pipeline, misprediction penalty, [[likely]]/[[unlikely]], branch elimination, sorting effects, and PGO with practical examples.
-
C++ Cache Replacement Algorithms Complete Guide | FIFO·LRU
Comprehensive guide to cache replacement policies similar to LRU.
-
C++ I/O Optimization Cheatsheet | sync_with_stdio·cin.tie
C++ I/O optimization for coding test TLE prevention.
-
Modern C++ (C++11~C++20) Core Syntax Cheatsheet | auto
Modern C++ C++11~C++20 core syntax cheatsheet.
-
C++ new vs malloc | Constructor·Type Safety
C++ new vs malloc differences. Constructor·destructor, type safety, exception vs nullptr on failure.
-
C++ malloc vs new vs make_unique
C++ malloc vs new vs make_unique: Complete memory allocation comparison. Differences in constructor calling, exception safety, RAII.
-
C++ Compile-Time Programming Complete Guide | constexpr
Master C++ compile-time programming: constexpr variables/functions/classes, consteval immediate functions, if constexpr conditional compilation.
-
C++ condition_variable | Condition Variable Complete Guide
C++ condition_variable complete guide. Synchronization tool for inter-thread event notification.
-
C++ Container Adapters | stack·queue
C++ container adapters complete guide. Usage and practical application of stack (LIFO), queue (FIFO), priority_queue (heap).
-
C++26 Contracts Complete Guide
Express function preconditions, postconditions, and invariants at language level with C++26 Contracts.