UNDERSTANDING THE
COMPONENTS OF STANDARD
TEMPLATE LIBRARY
SUBJECT –C++
SUBJECT TEACHER- MR.BRIJESH SINGH
NAME –RAHUL SHARMA
WHAT IS TEMPLATE???
• Template is the feature of c++ programming
language that allows function and classes to
operate with generic types. This allows a
function or a class to work on many different
data types without being rewritten for each
one.
Components of STL
CONTAINER
ALGORITHMS
ITERATOR
WHAT IS A CONTAINER?
• CONTAINER IS AN OBJECT THAT ACTUALLY
STORE DATA .IT IS A WAY DATA IS ORGANISED
IN MEMORY.
TYPES OF CONATINER.
ALGORITHM
• AN ALOGRITHM IS A PROCEDURE THAT IS
USED TO PROCESS A DATA CONTAINED IN THE
CONTAINERS.
ITERATOR.
• AN ITERATOR IS AN OBJECT (LIKE A POINTER)
THAT POINTS TO AN ELEMENT IN A
CONTAINER . ITERATOR ARE HANDLED JUST
LIKE POINTERS. ITERATOR CONNECT
ALGORITHM WITH CONITAINERS AND PLAY A
KEY ROLE IN THE MANIPULATION OF DATA
STORED IN THE CONTAINERS.
• RELATION

Understanding the components of standard template library