Overview
Explore memory alignment in C++ through this 43-minute conference talk from code::dive 2018. Delve into the importance of alignment, default alignment rules, and various methods for ensuring proper alignment across different C++ versions. Learn about compiler-specific attributes, alignas and alignof keywords, std::aligned_storage, custom aligned allocators, and new features in C++17. Gain practical insights through code examples and discover how to handle alignment issues in your C++ projects. Perfect for developers looking to deepen their understanding of memory management and optimization techniques in C++.
Syllabus
Introduction
Welcome
Who am I
Agenda
What is alignment
What is memory
What is a viable
Alignment rules
When alignment may matter
When we know what alignment is
Compiler specific attributes
Compilerspecific functions
C11 alignment
Stand
LineStorage
AlignLock
CustomAllocators
AlignAllocators
AlignAllocators examples
Custom Deleter
UniquePointer
Standbind
Custom structure
How to use
Why
New features
Delete with alignment
PMR interface
Questions
Taught by
code::dive conference