Youtube - CppCon 2015 Bjarne Stroustrup “Writing Good C++14”

CppCon 2015: Bjarne Stroustrup “Writing Good C++14”

```timestamp-url https://www.youtube.com/watch?v=1OEu9C51K2A ```

Transcrição

 04:36

Youtube - CppCon 2015 Bjarne Stroustrup “Writing Good C++14”-1702724089411.jpeg

 07:09

Youtube - CppCon 2015 Bjarne Stroustrup “Writing Good C++14”-1702724196871.jpeg

 08:48

Youtube - CppCon 2015 Bjarne Stroustrup “Writing Good C++14”-1702724283356.jpeg

 10:58

Youtube - CppCon 2015 Bjarne Stroustrup “Writing Good C++14”-1702724383243.jpeg

 11:56

Pasted image 20231216180738.png

 19:09

Pasted image 20231216181317.png

 19:36

Pasted image 20231216181406.png

Tip

The guide line Support library
array_view<T> and not_null<T>

 20:15
#best-practices Some rules using GSL

I.11 Never transfer ownership by a raw pointer (T*)

  • Use an ownership pointer (ex. unique_ptr<T>) or owner<T*>
    I.12 Declare a pointer that may not be the nullptr as not_null
  • E.g not_null<int*>
    I.12 Do no pass an array as single pointer
  • Use handle type, e.g vector<T> or array_view<T>
 20:51

Pasted image 20231216183441.png

 22:58

Pasted image 20231216190452.png

 24:35

Pasted image 20231216190706.png

 25:11

Pasted image 20231216190734.png

 25:42

Pasted image 20231216190828.png

 26:50

Pasted image 20231216191020.png

 28:02

Pasted image 20231216192339.png

 28:53

Pasted image 20231216192456.png

 29:49

Pasted image 20231216192543.png

 31:31

Pasted image 20231217113347.png

 32:15

Pasted image 20231217115138.png

 33:13

Pasted image 20231217115152.png

 33:43

Pasted image 20231217115349.png

 35:21

Pasted image 20231217115555.png

 35:41

Pasted image 20231217115635.png

 35:51

Pasted image 20231217115652.png

 36:43

Pasted image 20231219193426.png

 37:18

Pasted image 20231219193505.png

 38:57

Pasted image 20231225235526.png

 40:00

Pasted image 20231225235637.png

 41:22

Pasted image 20231225235822.png

 41:34

Pasted image 20231227183216.png

 41:53

Pasted image 20231227183349.png

 43:12

Pasted image 20231227183539.png

 44:16

Pasted image 20231227183642.png

 45:04

Pasted image 20231227183920.png

#interesting #author-bjarnestroustrup

 48:02

Pasted image 20231227184148.png

Pasted image 20240111113853.png

 50:58

Pasted image 20240111114043.png

 54:03

Pasted image 20240127081632.png

 55:01

Pasted image 20240127081750.png

Pasted image 20240127082020.png

 57:43

End of presentation

 58:41

std::own<T>

statical analysis

 01:00:36

not

 22:60

seção

C++ in new perspective