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

YouTube

How C++20 Can Simplify std - tuple

ACCU Conference via YouTube

Overview

Limited-Time Offer: Up to 75% Off Coursera Plus!
7000+ certificate courses from Google, Microsoft, IBM, and many more.
This course aims to teach learners how C++20 features can simplify the usage of std::tuple, enabling the creation of optimized high-performance implementations with reduced complexity. The course covers the application of new Concepts language feature, attributes, and extended syntax to achieve this goal without the need for metaclasses. The teaching method includes discussing C++17 and C++20 enhancements, implementing comparison and operators, and utilizing features like fold expressions and structured bindings. The course is designed for developers working with generic wrapper types who want to streamline their code and improve performance in C++ programming.

Syllabus

Intro
C++20 Big Ticket Items
Modules...
Outline of a Module
Module Preamble
What is a tuple
Naming emphasizes structure
Why is get not a member?
C++17 tuple Enhancments
C++17 Language Features
Fold Expressions (C++17)
Fold Expression Grammar
Generic Implementation
Implementing comparison in C++17
Basic Implementation
SFINAE constraints
Perform comparison
Implementing comparison in C++20
The TupleLike Concept
swap using lambda in C++20
swap using expansion statement in C++20
Expansion Statements
Support Structured Binding
Implementing operators in
with expansion statement
Final Rendering with the Spaceship Operator
What Can Spaceship Return?
Implementation Strategy 1
Basic Model
Implementing get
Ideal Version of wrap
Issues with wrap

Taught by

ACCU Conference

Reviews

Start your review of How C++20 Can Simplify std - tuple

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.