Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Where Does the this Pointer REALLY Point in C++? (It’s Not the Object)

Автор: CodeBing

Загружено: 2026-01-10

Просмотров: 94

Описание:

Most C++ developers believe that the this pointer always points to the object’s address.

That belief is technically wrong — and in real-world C++ code, it can lead straight to undefined behavior.

In this video, we take a deep dive into what the `this` pointer REALLY is in C++.

You’ll learn:
Why `this` is NOT guaranteed to point to the start of an object
How multiple inheritance breaks the “this == object address” illusion
How compilers adjust the `this` pointer behind the scenes
Why virtual functions in multiple inheritance require thunks
How ABI rules, not the C++ language itself, define object layout

We’ll walk through real memory layouts, compiler behavior, and virtual dispatch paths used by GCC and Clang.

If you’ve ever:
cast `this` with `reinterpret_cast`
assumed `this` points to the most-derived object
relied on object memory layouts
serialized objects via raw memory dumps
crossed ABI boundaries between modules

…then this video explains exactly why that’s dangerous.

Once you understand that C++ member functions are just functions with a hidden parameter,
many “mysterious” behaviors suddenly make perfect sense.

In the next video, we’ll push this idea further and explain why
the real boundary of C++ is the ABI, not the language itself.

Where Does the this Pointer REALLY Point in C++? (It’s Not the Object)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Libraries That Quietly Revolutionized C

Libraries That Quietly Revolutionized C

Код работает в 100 раз медленнее из-за ложного разделения ресурсов.

Код работает в 100 раз медленнее из-за ложного разделения ресурсов.

1 Basics of C programming

1 Basics of C programming

ДАМПЫ В JAVA на практике, разбираем проблемы

ДАМПЫ В JAVA на практике, разбираем проблемы

Компания Microsoft хочет полностью отказаться от кода на C++?

Компания Microsoft хочет полностью отказаться от кода на C++?

why does inheritance suck?

why does inheritance suck?

Перестаньте мне рассказывать о _Generic

Перестаньте мне рассказывать о _Generic

Most C++ Virtual Calls Are NOT Dynamic Dispatch

Most C++ Virtual Calls Are NOT Dynamic Dispatch

Как взломать любое программное обеспечение

Как взломать любое программное обеспечение

C++ Under the Hood: Internal Class Mechanisms - Chris Ryan - CppCon 2024

C++ Under the Hood: Internal Class Mechanisms - Chris Ryan - CppCon 2024

One Formula That Demystifies 3D Graphics

One Formula That Demystifies 3D Graphics

Программирование на ассемблере без операционной системы

Программирование на ассемблере без операционной системы

C++ Objects Are NOT What You Think (Inside vtables & ABI)

C++ Objects Are NOT What You Think (Inside vtables & ABI)

Как устроена компьютерная графика? OpenGL / C++

Как устроена компьютерная графика? OpenGL / C++

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

VTable и VPointers — виртуальные функции, полиморфизм времени выполнения | Самый важный вопрос дл...

VTable и VPointers — виртуальные функции, полиморфизм времени выполнения | Самый важный вопрос дл...

Я удалил ';' из C

Я удалил ';' из C

Почему огонь ГОРИТ. Ответ Фейнмана переворачивает реальность

Почему огонь ГОРИТ. Ответ Фейнмана переворачивает реальность

STM32 после Arduino: с чего начать (Есть субтитры)

STM32 после Arduino: с чего начать (Есть субтитры)

How One Guy FIXED Procedural Generation

How One Guy FIXED Procedural Generation

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com