►Full C++ Series Playlist: [ Ссылка ]
►Find full courses on: [ Ссылка ]
►Join as Member to Support the channel: [ Ссылка ]
►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: [ Ссылка ]
►Please like and subscribe to help the channel!
![](https://s2.save4k.ru/pic/H9rYa11hKjQ/mqdefault.jpg)