Blog
-
C++ sregex_iterator | Regex iterators for all matches
Use sregex_iterator and sregex_token_iterator to enumerate matches, split tokens, avoid dangling iterators, and handle empty matches and UTF-8 limits wi...
-
C++ std::chrono::steady_clock | Monotonic time for benchmarks
Use steady_clock for elapsed time and timeouts: monotonic guarantees vs system_clock, comparison with high_resolution_clock, benchmarking patterns, and ...
-
C++ set/unordered_set | 'Duplicate Removal' Complete Guide
set·unordered_set performance comparison, multiset, custom comparator·hash, practical set operations, iterator invalidation guide. Learn when to use set...
-
C++ Temporary Objects: Lifetime, const&, RVO, and Pitfalls
C++ temporaries: full-expression rules, lifetime extension with const& and rvalue refs, dangling pointers from c_str(), RVO/NRVO, and performance tips.
-
C++ time_point | 'Time Points' Guide
C++ std::chrono::time_point represents a point in time on a specific clock. It is used with duration, and the resolution can be changed with time_point_...
-
C++ timer utilities | sleep_for, sleep_until, and chrono literals
std::this_thread::sleep_for vs sleep_until, steady_clock deadlines, polling with short sleeps, yield vs spin, Asio timers, and accuracy limits of thread...
-
C++ tuple apply | 'Application of tuples' guide
Everything about C++ tuple apply : from basic concepts to practical applications. Master key content quickly with examples.'Tuple application' guide. Wh...
-
C++ Use-After-Free (UAF): Causes, ASan, and Ownership Rules
Understand use-after-free in C++: dangling pointers, container invalidation, ASan and Valgrind, smart pointers, weak_ptr, and a gdb + ASan debugging wor...
-
C++ using vs typedef: Type Aliases Quick Comparison
Compare typedef and using with tables and short examples. Function pointers, template aliases, and patterns—deep dive continues in cpp-typedef-using.
-
Docker Compose: Node API, PostgreSQL, Redis in One Stack | Production Template
Production-style Docker Compose for Node.js: define API, PostgreSQL, and Redis in one stack with docker-compose.yml, env, health checks, volumes, and re...