Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Classes Part 29 - Class Data Layout (Optimizing for size) | Modern Cpp Series Ep. 66
Play lesson

The C++ Programming Language - Classes Part 29 - Class Data Layout (Optimizing for size) | Modern Cpp Series Ep. 66

4.0 (5)
38 learners

What you'll learn

This course includes

  • 68.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

The C++ Programming Language Classes Part 29 - Class Data Layout (Optimizing for size) | Modern Cpp Series Ep. 66

Classes Part 29 - Class Data Layout (Optimizing for size) | Modern Cpp Series Ep. 66 Transcript and Lesson Notes

►Full C++ Series Playlist: https://www.youtube.com/playlist?list=PLvv0ScY6vfd8j-tlhYVPYgiIyXduu6m-L ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: https://www.youtube.com/channel

Quick Summary

►Full C++ Series Playlist: https://www.youtube.com/playlist?list=PLvv0ScY6vfd8j-tlhYVPYgiIyXduu6m-L ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: https://www.youtube.com/channel

Key Takeaways

  • Review the core idea: ►Full C++ Series Playlist: https://www.youtube.com/playlist?list=PLvv0ScY6vfd8j-tlhYVPYgiIyXduu6m-L ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: https://www.youtube.com/channel
  • Understand how classes fits into Classes Part 29 - Class Data Layout (Optimizing for size) | Modern Cpp Series Ep. 66.
  • Understand how part fits into Classes Part 29 - Class Data Layout (Optimizing for size) | Modern Cpp Series Ep. 66.
  • Understand how class fits into Classes Part 29 - Class Data Layout (Optimizing for size) | Modern Cpp Series Ep. 66.
  • Understand how data fits into Classes Part 29 - Class Data Layout (Optimizing for size) | Modern Cpp Series Ep. 66.

Key Concepts

Full Transcript

►Full C++ Series Playlist: https://www.youtube.com/playlist?list=PLvv0ScY6vfd8j-tlhYVPYgiIyXduu6m-L ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: https://www.youtube.com/channel/UCA64pZbN5Mz5NxC3SO4qpDg/join ►Lesson Description: In this lesson I show you the importance of how you lay out your member variables in your classes and structs. C++ Compilers align member variables to powers of 2, in order to make it easier to access fields. That said, this can cause waste depending on the order in which you list your member variables in classes. As a general guideline, you can list the larger member variables first, and then the smaller variables after to prevent internal fragmentation. ►YouTube Channel: https://www.youtube.com/c/MikeShah ►Please like and subscribe to help the channel!

Lesson FAQs

What is Classes Part 29 - Class Data Layout (Optimizing for size) | Modern Cpp Series Ep. 66 about?

►Full C++ Series Playlist: https://www.youtube.com/playlist?list=PLvv0ScY6vfd8j-tlhYVPYgiIyXduu6m-L ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: https://www.youtube.com/channel

What key concepts are covered in this lesson?

The lesson covers classes, part, class, data, layout.

What should I learn before Classes Part 29 - Class Data Layout (Optimizing for size) | Modern Cpp Series Ep. 66?

Review the previous lessons in The C++ Programming Language, then use the transcript and key concepts on this page to fill any gaps.

How can I practice after this lesson?

Practice by applying the main concepts: classes, part, class, data.

Does this lesson include a transcript?

Yes. The full transcript is visible on this page in indexable HTML sections.

Is this lesson free?

Yes. CourseHive lessons and courses are available to learn online for free.

Continue Learning

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Lessons

Related Courses

FAQs

Course Hive
Download CourseHive and keep learning anywhere
Get App