Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Nth Pack Element in C++ - A Case Study

CppCon via YouTube

Overview

Explore various techniques for accessing the nth element of a variadic pack in C++ through this comprehensive conference talk from CppCon 2022. Delve into approaches ranging from naive implementations to advanced template meta-programming tricks and compiler intrinsics. Gain insights into C++20 features that enable new methods for handling variadic packs. Compare different solutions, including compilation times and readability, across languages like Rust, Nim, D, Circle, and C++. Enhance your understanding of modern C++ development, focusing on performance and quality, while learning from Senior Software Architect Kris Jusiak's expertise in template meta-programming and domain-specific languages.

Syllabus

Introduction
Outline
Motivation
Apply
First Element
Last Element
First and Last Element
Structure Bindings
First and Last
Objectives
Solution
Summary
Expansion Concepts
Circle
Array
State Array
Readability
Performance
Recursion
Conclusion
Overload vs Expert
Un unrolling
Index sequence
Lambda Expression
Dark Magic
Concepts
MP11 Library
MP11 Functions
Preprocessor
Solutions
Is compiler intrinsic
Template meta programming
stdra syntax
language feature
proposal
index operator
template
Tuple
Integral Constant
Tuple Manipulation
Lambda
Measuring
Recap
Use Cases
Limitations
Benchmarking
Circle Tuple
Spark Element
Sum up

Taught by

CppCon

Reviews

Start your review of Nth Pack Element in C++ - A Case Study

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.