Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

When You Hit "Error - Memory Is Not Aligned"

code::dive conference via YouTube

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

Reviews

Start your review of When You Hit "Error - Memory Is Not Aligned"

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.