Great C++ is_trivial: trivial type traits - Jason Turner - CppCon 2023

Great C++ is_trivial: trivial type traits - Jason Turner - CppCon 2023

22.057 Lượt nghe
Great C++ is_trivial: trivial type traits - Jason Turner - CppCon 2023
https://cppcon.org/ --- Great C++ is_trivial: trivial type traits - Jason Turner - CppCon 2023 Jason Turner - CppCon 2023 https://github.com/CppCon/CppCon2023 There are many ways to initialize an object in C++, and much time spent analyzing the efficiency of the many options. We then think and rethink and overthink how to avoid copies and if a `std::move` would be more efficient in a certain case. But if we understand what it means for a type to be trivial most of these questions now become meaningless. We can get all of the efficiency we could hope for, and probably more. We will look at the trivial type traits, what they mean, and how they affect our code. Will will then examine the benefits of using trivial types and the impact on performance. --- Jason Turner Jason is host of the YouTube channel C++Weekly, co-host emeritus of the podcast CppCast, author of C++ Best Practices, and author of the first casual puzzle books designed to teach C++ fundamentals while having fun! --- Videos Filmed & Edited by Bash Films: http://www.BashFilms.com YouTube Channel Managed by Digital Medium Ltd: https://events.digital-medium.co.uk --- Registration for CppCon: https://cppcon.org/registration/ #cppcon #cppprogramming #cpp