Run-Time Type Information (RTTI) C++

  Рет қаралды 12,548

Devendra Gangrade

Devendra Gangrade

Күн бұрын

Пікірлер
@ArshilGenius
@ArshilGenius 2 жыл бұрын
Awesome explanation, thanks devendra
@krisitak
@krisitak 5 жыл бұрын
Thank you Mr. Devendra. Very useful video.
@devendragangrade
@devendragangrade 5 жыл бұрын
Glad it helped you :)
@krisitak
@krisitak 3 жыл бұрын
@@devendragangrade Mr. Devendra, I find myself watching your explanation again years later. I'm preparing for a job interview and your video is the best on the topic. Thank you once again! :)
@devendragangrade
@devendragangrade 3 жыл бұрын
@@krisitak glad it is helping you. Good luck for your interview.:)
@sonuyadavaffriya
@sonuyadavaffriya 2 жыл бұрын
I couldnt find 'bases' member in std::type_info
@devendragangrade
@devendragangrade 2 жыл бұрын
The library routine used for dynamic_cast must check though a list of base classes. Compiler adds it to the structure as per routine followed by dynamic_cast
@YashArora721
@YashArora721 5 жыл бұрын
Nice explanation of RTTI. I just have a doubt on how you copied the vtables of A and B in C, in C vptr of C should point to instance of C which in itself should contain the respective function ptrs.
@devendragangrade
@devendragangrade 5 жыл бұрын
First of all Thank you for watching this video. On high level your understaing is correct and I have shown the same that the virtual table of C is represented as C::. Here I have explained the internal implementation of virtual mechanism. Compiler first copies the memory model of base classe then make changes accordingly. Once done, C's virtual pointer point's to C's virtual table and so on leaving non virtual funtion pointers as it is. Hope it makes more clear.
@vaibhavtiwari6598
@vaibhavtiwari6598 5 жыл бұрын
What are you doing in London
@devendragangrade
@devendragangrade 5 жыл бұрын
I work for Barclays
@monsterpets5899
@monsterpets5899 3 жыл бұрын
Thankssssssssssssss
Type casting in C++: dynamic_cast in C++
11:52
Knowledge Center
Рет қаралды 10 М.
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 410 М.
Dynamic Casting in C++
13:59
The Cherno
Рет қаралды 119 М.
Faster than Rust and C++: the PERFECT hash table
33:52
strager
Рет қаралды 613 М.
C++ - typeid and dynamic_cast
8:46
Bradley Needham
Рет қаралды 18 М.
templates | class templates | stack as template class | C++ Programming
21:46
Tushars Programming Tutorials
Рет қаралды 7 М.
Advanced C++: Understanding rvalue and lvalue
12:06
Bo Qian
Рет қаралды 139 М.
Building Real-time Apps with Go | Azim Pulat
54:58
Azim Pulat
Рет қаралды 88 М.