Nico Josuttis - C++20 - My Favorite Code Examples - Meeting C++ 2021

  Рет қаралды 4,952

Meeting Cpp

Meeting Cpp

Күн бұрын

Пікірлер: 7
@superscatboy
@superscatboy 2 жыл бұрын
I love Nico's pragmatic approach to C++. Always great to hear from him.
@MindGameArcade
@MindGameArcade 2 жыл бұрын
Fantastic talk
@alltheway99
@alltheway99 2 жыл бұрын
Excellent presentation
@AM-qx3bq
@AM-qx3bq 2 жыл бұрын
I enjoyed the talk. I fail to see why that intermediate vector was necessary in the merge function...just use the array in the first place? Also, returning the size of the array as a pair element, it's an array so the size is encoded within its type if the user wants it...no?
@Qazqi
@Qazqi 2 жыл бұрын
Any way you compute the final size, it's not going to be a constant expression because the information of how many elements to leave out (the intersection) is not present in the template parameters in any form. As the slides show, the best you can do is a maximum size, and that's only because the input array's size is present within its template parameter, making the `size()` call on it a constant expression. Even though the data is known at compile-time, you cannot instantiate a template (`std::array`) during constant evaluation, so anything that requires waiting until you're evaluating the function call to determine the size is too late. Given that, the other part of your comment can be answered by saying that it's not returning the actual array, it's returning a max-size array and then an accompanying size to indicate how much of that array is used.
@alltheway99
@alltheway99 2 жыл бұрын
Could we get the presentation?
@MaitreBart
@MaitreBart 2 жыл бұрын
What is res.out at slide 32?
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 8 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 4 МЛН
Back to Basics: Lambdas - Nicolai Josuttis - CppCon 2021
1:05:21
Writing cache friendly C++ - Jonathan Müller - Meeting C++ 2018
54:38
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 233 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,1 МЛН
CppCon 2019: Jason Turner “The Best Parts of C++"
58:36
CppCon
Рет қаралды 91 М.
Are you hiring for C++?
31:32
Meeting Cpp
Рет қаралды 548
BEST WAY to make Desktop Applications in C++
26:00
The Cherno
Рет қаралды 919 М.
Внутри коробки iPhone 3G 📱
0:36
serg1us
Рет қаралды 237 М.
Китайцы сделали телефон БАЯН
0:14
Собиратель новостей
Рет қаралды 1,6 МЛН
Выпрыгивает ли аккумулятор в iPhone 16?
0:43
ÉЖИ АКСЁНОВ
Рет қаралды 3,4 МЛН
Обзор на 16 айфон
1:01
Тыковка из Германии
Рет қаралды 764 М.