How to Tame Packs, std::tuple, and the Wily std::integer_sequence - Andrei Alexandrescu @CppCon
How to Tame Packs, std::tuple, and the Wily std::integer_sequence - Andrei Alexandrescu  @CppCon
Uploaded January 2026 | Updated November 2026, 2 days ago
cppcon.org
---

How to Tame Packs, std::tuple, and the Wily std::integer_sequence - Andrei Alexandrescu - CppCon 2025
---

Template parameter packs and std::tuple unlock powerful metaprogramming capabilities in C++, but they also introduce a parallel sublanguage—one with unfamiliar rules, verbose idioms, and surprising limitations. Packs were originally designed for perfect forwarding, not compile-time iteration, which makes even simple tasks like filtering or transformation awkward. std::integer_sequence helps, but mostly by shifting the burden rather than removing it.

Existing library utilities offer some relief, but often feel inconsistent and difficult to compose. This talk explores why working with packs and tuples feels harder than it should, and demonstrates a small set of clean, reusable abstractions that make these tasks simpler, safer, and more expressive. Attendees will leave with practical tools—(and, with luck, a renewed hope) that structured metaprogramming in C++ doesn't have to be so hard.

---

Slides: github.com/CppCon/CppCon2025/blob/main/Presentations/How_to_Tame_Packs.pptx

Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---

Andrei Alexandrescu

Andrei Alexandrescu is a Principal Research Scientist at NVIDIA. He wrote three best-selling books on programming (Modern C++ Design, C++ Coding Standards, and The D Programming Language) and numerous articles and papers on wide-ranging topics from programming to language design to Machine Learning to Natural Language Processing to fundamental algorithms. Andrei holds a PhD in Computer Science from the University of Washington and a BSc in Electrical Engineering from University ""Politehnica"" Bucharest. He is the Vice President of the D Language Foundation.
---


CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---

Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---

#cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer
How to Tame Packs, std::tuple, and the Wily std::integer_sequence - Andrei AlexandrescuLightning Talk: Catching Performance Issues at Compile Time - Keith Stockdale - CppCon 2025Lightning Talk: Using PMR in C++ Embedded Systems for Functional Safety - Scott Dixon - CppCon 2024Your Optimized Code Can Be Debugged - Heres How With MSVC C++ Dynamic Debugging - Eric BrumerLightning Talk: When Computers Cant Math - Floating Point Rounding Error ExplainedLightning Talk: Execution Policies: Not a Forward Progress Guarantee - Ruslan ArutyunyanPractical Reflection With C++26 - Barry Revzin - CppCon 2025Optimize Automatic Differentiation Performance in C++ - Steve Bronder - CppCon 2025Debugging C++ Coroutines in GDB - Zartaj Majeed - CppCon 2025Back to Basics: Lifetime Management in Cpp - Phil Nash - CppCon 2024Lightning Talk: Chplx - Bridging Chapel and C++ for Enhanced Asynchronous Many-Task ProgrammingA Case-study in Rewriting a Legacy Gui Library for Real-time Audio Software in Modern C++ (Reprise)
CppCon |

How to Tame Packs, std::tuple, and the Wily std::integer_sequence - Andrei Alexandrescu

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER