YoVDO

Nth Pack Element in C++ - A Case Study

Offered By: CppCon via YouTube

Tags

C++ Courses Tuples Courses Template Metaprogramming Courses Variadic Templates Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Related Courses

Vector-Dynamic Array - Making Data Structures in C++
The Cherno via YouTube
C++ Insights - See Your Source Code with the Eyes of a Compiler
NDC Conferences via YouTube
C++ Insights - How Stuff Works, Lambdas and More
CppNow via YouTube
Generative Programming in Action - Emulating the 3DS
CppNow via YouTube
The Problem with Cutting Edge C++
CppNow via YouTube