Blog
-
C++ Custom Allocator | 'Custom Allocator' Guide
Development blog post organizing C++ Custom Allocator. template<typename T> class MyAllocator { public: using value_type = T; T allocate(size_t n) { ret...
-
C++ Custom Deleters | 'Custom Deleter' Guide
When custom deleters are needed, comparing function pointers·lambdas·function objects, differences in type·storage between unique_ptr and shared_ptr, fi...
-
C++ Dangling References: Lifetime, Temporaries, and Containers
Dangling references in C++: returning references to locals, temporaries, container invalidation, lambdas, and fixes—values, smart pointers, ASan.
-
C++ Data Structures | 'Implementing from Scratch' Linked List/Tree/Hash Table
Development blog post organizing C++ data structures. template <typename T> class BST { private: struct Node { T data; Node left; Node right; Node(T val...
-
C++ date parsing and formatting | chrono, std::format, and time zones
Format and parse calendar dates with C++20 chrono, std::format, parse, zoned_time, locale-aware weekday names, and common pitfalls for wire formats vs d...
-
C++ Debugging: GDB, LLDB, Sanitizers, Leaks, and Multithreaded Bugs
Production-grade C++ debugging: GDB/LLDB advanced usage, ASan/TSan/UBSan/MSan, Valgrind, core dumps, data races, deadlocks, and logging patterns.
-
C++ Debugging Practical Complete Guide | gdb, LLDB, Visual Studio Complete Usage
C++ debugging practical guide #include <iostream> using namespace std;. Focused on C++, debugging, and gdb. Start now.
-
C++ decltype | Extract Expression Types
decltype vs auto, decltype(auto), trailing return types, SFINAE with decltype, and the decltype(x) vs decltype((x)) pitfall for templates.
-
C++ Decorator Pattern: Complete Guide | Dynamic Wrapping & Composition
Decorator pattern in C++: stack behaviors on coffee/stream/logger/formatter examples—vs inheritance, proxy, adapter, and smart-pointer pitfalls for Engl...
-
C++ Deduction Guides: Customizing CTAD in C++17
Deduction guides for CTAD: syntax, iterator pairs, const char* to string conversions, explicit guides, and pitfalls with ambiguous overloads.