IIFE for Complex Initialization
Explains how to use Immediately Invoked Function Expressions (IIFE) in C++ for complex variable initialization while keeping variables const.
Bartłomiej Filipek is a C++ software developer from Cracow, sharing deep technical articles on graphics, desktop apps, and large-scale systems. With experience in OpenGL, gamedev, and document editors at Xara, he writes about real-world C++ engineering.
24 articles from this blog
Explains how to use Immediately Invoked Function Expressions (IIFE) in C++ for complex variable initialization while keeping variables const.
A practical guide with C++20 code examples for using std::chrono's calendar types to solve common date calculation problems.
An overview of the new calendar and date types introduced in C++20's std::chrono library for expressive and type-safe date manipulation.
Explores new C++26 features for iterating and manipulating std::tuple using structured binding packs and expansion statements.
Explores advanced C++ techniques for iterating through std::tuple, focusing on std::apply and generic approaches.
Explores C++17 structured bindings, their syntax, and practical use cases like iterating through maps, with a look ahead to C++26 additions.
Explores C++ static local variables, their thread-safe initialization since C++11, and techniques to avoid associated performance costs.
Explores C++23 range adaptors like views::split, views::chunk, and views::chunk_by with practical examples for splitting and grouping data.
Explores implementing a custom 2D iterator in C++, comparing a manual approach with a modern solution using C++20 ranges and views.
Explores C++26's concat_view, C++20's join_view, and C++23's join_with_view for efficient range concatenation and flattening.
A technical guide to std::mdspan in C++23, covering its type declaration, creation with static/dynamic extents, and customization options.
Explores implementing graph adjacency matrices in C++23, comparing vector-of-vectors to the new std::mdspan for better performance.
A guide to using std::span from C++20, covering its benefits, construction, and differences between static and dynamic extents.
Explores C++26's new safety features to prevent dangling references in a configuration manager, with code examples and fixes.
Eight practical code examples demonstrating new features in the C++23 programming language standard.
A comprehensive overview of new C++23 Standard Library features, including code examples and downloadable reference cards.
A comprehensive guide to new C++23 language features, including code examples and a downloadable reference card.
Exploring unusual time zones using C++20's chrono library and the IANA Time Zone Database.
Explores using C++23's std::chrono library to handle dates, times, and time zones, including formatting and retrieving current global times.
Explores the evolution and usage of the high-performance std::from_chars function for string-to-number conversion from C++17 to C++26.