Тёмный

C++ Insights - Episode 30: C++17's constexpr if 

Andreas Fertig
Подписаться 3,1 тыс.
Просмотров 694
50% 1

In this episode, you learn about C++17's constexpr if. How this feature works and where you can benefit from a constexpr if.
---
WORK WITH ME
I'm available for in-house C++ training classes, onsite or remote. You can also check out my self-study courses below.
► My training classes: andreasfertig....
‼️ 📅 🗓️ UPCOMING OPEN-ENROLLMENT CLASSES AND TALKS 🗓️ 📅 ‼️
Talks
"Fast and small C++ - When efficiency matters", Meeting C++, November 16
"Fast and small C++ - When efficiency matters", code::dive, November 25
"Effizientes C++ - Tips und Tricks aus dem Alltag", ESE Kongress, December 04
STAY CONNECTED
► Bluesky: bsky.app/profi...
► Twitter: / andreas__fertig
► Mastodon: mas.to/@andrea...
► LinkedIn: / andreasfertig
► GitHub: github.com/and...
► Newsletter: andreasfertig....
ANDREAS' BOOKS
► Amazon (Paperback): amzn.com/store...
► Leanpub (Ebook): leanpub.com/u/...
ANDREAS' SELF-STUDY COURSES
► A day with C++20s Coroutines: fertig.to/ytsl...
► Programming with C++17 and C++20: fertig.to/ytsl...
ANDREAS' CONFERENCE VIDEOS
► • Andreas Fertig - C++ T...
MORE C++ INSIGHTS VIDEOS
► • C++ Insights
SUPPORT THE PROJECT
► GitHub Sponsors: github.com/spo...
► Patreon: / cppinsights
C++ Insights online: cppinsights.io
#cppinsights #cpp #cpp17

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@adeelahmad9875
@adeelahmad9875 2 месяца назад
Nice !!
@sebastienlevy8127
@sebastienlevy8127 2 года назад
Like it, thanks, one question however related to the PT type alias, why do you use std::remove_reference_t alongside with remove_reference_t? If I'm correct, remove_cvref_t removes both const, volatile AND reference qualifiers. Isn't that redundant?
@TheMR-777
@TheMR-777 2 года назад
I was wondering about it as well.
@andreas_fertig
@andreas_fertig 2 года назад
Yes, it is redundant! Thanks for pointing that out. My original example was C++17 code, where we don't have remove_cvref_t. I decided to update the example for the recording to use C++20 and overlooked the redundancy. Nonetheless, I would use the alias PT to shorten the longish std::remove_cvref_t in the following code. Andreas
Далее
Part 5. Roblox trend☠️
00:13
Просмотров 2,6 млн
One Year Since October 7th - with Tal Becker
48:13
Просмотров 5 тыс.
CppCon 2015: Scott Schurr “constexpr: Applications"
1:00:29
C++ Weekly - Ep 18 C++17's constexpr if
12:39
Просмотров 27 тыс.
C++ Insights - Episode 1: The invisible things
4:53
Просмотров 1,6 тыс.
How Strings Work in C++ (and how to use them)
19:26
Просмотров 462 тыс.
Introduction to constexpr | Modern Cpp Series Ep. 86
10:56
Should I pass by const reference or by value?
10:45
Просмотров 106 тыс.
Part 5. Roblox trend☠️
00:13
Просмотров 2,6 млн