Blog
-
C++ Regular Expressions — Complete std::regex Guide
C++ std::regex: regex_match vs regex_search, capture groups, replace, iterators, raw strings, performance, greedy matching, and ECMAScript syntax.
-
C++ return Statement — Complete Guide
C++ return: basics, return types, references, pointers, RVO/NRVO, multiple return values (pair, tuple, optional), and common pitfalls with examples.
-
C++ scoped_lock — Scoped locking, std::lock, and deadlock
std::scoped_lock (C++17) is an RAII lock that locks multiple mutexes at once via std::lock.
-
C++ Compilation Pipeline — Preprocessing, Compilation,
C++ build pipeline: preprocess, compile, assemble, link; static vs dynamic libs; fix undefined reference and common linker errors.
-
C++ Smart Pointers
C++ smart pointers: unique_ptr, shared_ptr, weak_ptr, make_unique, make_shared—fix circular references when memory grows despite no Valgrind leak.
-
C++ std::thread basics — join/detach mistakes, mutex,
C++ std::thread: create, join, detach; mutex, condition_variable, atomic, jthread; process vs thread; common mistakes and production patterns.
-
C++ string fundamentals — std::string, C strings,
C++ strings: std::string ops, C-string comparison with strcmp (not ==), string_view lifetimes, common bugs, and performance tips—with runnable examples.
-
C++ std::vector Basics — Initialization, Operations &
C++ std::vector fundamentals: init, access, insert/erase, size vs capacity, reserve vs resize, iterator safety, and production patterns.
-
C++ Debugging Basics — GDB & LLDB: Breakpoints, Watchpoints,
C++ debugging with GDB/LLDB: breakpoints, watchpoints, conditional breaks, backtraces, stepping, and core dumps—find segfaults faster than printf.
-
C++ Package Managers: Escape “Library Install Hell” with
C++ package managers explained: vcpkg and Conan for dependencies, CMake integration, manifests, triplets, profiles, CI, caches, and production patterns.