0% found this document useful (0 votes)
33 views

R Is King: STL Containers - What Are The Types of STL Containers?

RTTI stands for "Run Time Type Identification" and allows determining the exact type of an object during runtime. It can be used via the dynamic_cast or typeid operators. RTTI provides information about an object's type that can be queried at runtime, enabling polymorphism where an object's behavior can dynamically change. There are three types of STL containers - sequence containers like vector and deque, associative containers like set and map, and adaptive containers like queue and stack.

Uploaded by

saurabh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

R Is King: STL Containers - What Are The Types of STL Containers?

RTTI stands for "Run Time Type Identification" and allows determining the exact type of an object during runtime. It can be used via the dynamic_cast or typeid operators. RTTI provides information about an object's type that can be queried at runtime, enabling polymorphism where an object's behavior can dynamically change. There are three types of STL containers - sequence containers like vector and deque, associative containers like set and map, and adaptive containers like queue and stack.

Uploaded by

saurabh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Answer1.

RTTI stands for "Run Time Type Identification". In an inheritance hie


find out the exact type of the objet of which it is member. It can be
1) dynamic id operator
2) typecast operator
Answer2.
RTTI is defined as follows: Run Time Type Information, a facility tha
object to be queried at runtime to determine its type. One of the fun
principles of object technology is polymorphism, which is the ability
dynamically change at runtime.
STL Containers - What are the types of STL containers?
There are 3 types of STL containers:
1. Adaptive containers like queue, stack
2. Associative containers like set, map
3. Sequence containers like vector, deque

r is king

hello

You might also like