SlideShare a Scribd company logo
STL algorithms
    Part 1
Iterators
Iterators
•   Why we need to have iterators
•   Features
•   iterator
•   reverse_iterator
•   const_iterator
•   What iterator type better to use
•   base() member
Functors
Functor
• What is functor?



          Function             Function objects



                        Handwritten               Lambdas
Functor
• operator()
• unary_function, binary_function
Algorithms
Algorithms
• Why it’s better to use STL algorithms
• Global STL algorithms overview
Non-modifying
 algorithms
for_each
• Overview
• Examples
count, count_if
• Overview
• Examples
find, find_if
• Overview
• Examples
equal
• Overview
• Examples
all_of, any_of, none_of
• Overview
• Examples
Questions?

More Related Content

Viewers also liked (7)

PPTX
Communication in android
eleksdev
 
PPTX
Angular. presentation
eleksdev
 
PPTX
Css animation, html5 api
eleksdev
 
PPTX
Hello android world
eleksdev
 
PPTX
Lecture android best practices
eleksdev
 
PPTX
Lecture java basics
eleksdev
 
PPTX
Android location and sensors API
eleksdev
 
Communication in android
eleksdev
 
Angular. presentation
eleksdev
 
Css animation, html5 api
eleksdev
 
Hello android world
eleksdev
 
Lecture android best practices
eleksdev
 
Lecture java basics
eleksdev
 
Android location and sensors API
eleksdev
 

Similar to cpp-2013 #9 STL Algorithms Part 1 (20)

PPTX
Introduction_to_Python.pptx
RahulChaudhary51756
 
PPTX
Iterator - a powerful but underappreciated design pattern
Nitin Bhide
 
PDF
C,s&s
sid6376
 
PPTX
What's new in c# 6.0
LearningTech
 
PPTX
Polymorphism
prabhat kumar
 
RTF
Python
Trainme Softtech
 
PPTX
Design p atterns
Amr Abd El Latief
 
PPTX
Python Basics.pptx
16115yogendraSingh
 
PDF
Lambdas in Java 8
Tobias Coetzee
 
PPTX
TypeScript
Udaiappa Ramachandran
 
PPTX
Functions
Gaurav Subham
 
PPT
Power of introspection
Joseph Jeffrey
 
PPTX
Android webinar class_java_review
Edureka!
 
PPTX
OOP static variables - friend function - operator overloading - copy constructor
Tamir Azrab
 
PDF
Python indroduction
FEG
 
KEY
Programming with Python - Week 3
Ahmet Bulut
 
PPTX
Standard template library
ThamizhselviKrishnam
 
PPTX
Algorithm_Presentation_Ixjkmcfsdnm,vznkslds,nf
DailyTech3
 
PPTX
Introduction to Python Programming for beginners
MuhammadUsman406079
 
Introduction_to_Python.pptx
RahulChaudhary51756
 
Iterator - a powerful but underappreciated design pattern
Nitin Bhide
 
C,s&s
sid6376
 
What's new in c# 6.0
LearningTech
 
Polymorphism
prabhat kumar
 
Design p atterns
Amr Abd El Latief
 
Python Basics.pptx
16115yogendraSingh
 
Lambdas in Java 8
Tobias Coetzee
 
Functions
Gaurav Subham
 
Power of introspection
Joseph Jeffrey
 
Android webinar class_java_review
Edureka!
 
OOP static variables - friend function - operator overloading - copy constructor
Tamir Azrab
 
Python indroduction
FEG
 
Programming with Python - Week 3
Ahmet Bulut
 
Standard template library
ThamizhselviKrishnam
 
Algorithm_Presentation_Ixjkmcfsdnm,vznkslds,nf
DailyTech3
 
Introduction to Python Programming for beginners
MuhammadUsman406079
 
Ad

More from Amazon Web Services (18)

PPTX
cpp-2013 #20 Best practices
Amazon Web Services
 
PPTX
cpp-2013 #19 Concurrency
Amazon Web Services
 
PPT
cpp-2013 #18 Qt Part 2
Amazon Web Services
 
PPTX
cpp-2013 #17 Libraries
Amazon Web Services
 
PPTX
cpp-2013 #16 Automated testing
Amazon Web Services
 
PPTX
cpp-2013 #15 Databases
Amazon Web Services
 
PPTX
cpp-2013 #14 Основи Qt
Amazon Web Services
 
PPTX
cpp-2013 #13 C++11
Amazon Web Services
 
PPTX
cpp-2013 #12 Управління пам’яттю Частина 2
Amazon Web Services
 
PPTX
cpp-2013 #11 Constness and Exceptions
Amazon Web Services
 
PPTX
cpp-2013 #8 STL Containers Part 2
Amazon Web Services
 
PPTX
cpp-2013 #7 Templates and STL Containers
Amazon Web Services
 
PPTX
cpp-2013 #6 OOP Part 2
Amazon Web Services
 
PDF
cpp-2013 #5 File and network input/output
Amazon Web Services
 
PPTX
cpp-2013 #4 Memory management
Amazon Web Services
 
PPTX
cpp-2013 #3 OOP Basics
Amazon Web Services
 
PPTX
cpp-2013 #2 Organizing your code
Amazon Web Services
 
PPTX
cpp-2013 #1 C++ basics
Amazon Web Services
 
cpp-2013 #20 Best practices
Amazon Web Services
 
cpp-2013 #19 Concurrency
Amazon Web Services
 
cpp-2013 #18 Qt Part 2
Amazon Web Services
 
cpp-2013 #17 Libraries
Amazon Web Services
 
cpp-2013 #16 Automated testing
Amazon Web Services
 
cpp-2013 #15 Databases
Amazon Web Services
 
cpp-2013 #14 Основи Qt
Amazon Web Services
 
cpp-2013 #13 C++11
Amazon Web Services
 
cpp-2013 #12 Управління пам’яттю Частина 2
Amazon Web Services
 
cpp-2013 #11 Constness and Exceptions
Amazon Web Services
 
cpp-2013 #8 STL Containers Part 2
Amazon Web Services
 
cpp-2013 #7 Templates and STL Containers
Amazon Web Services
 
cpp-2013 #6 OOP Part 2
Amazon Web Services
 
cpp-2013 #5 File and network input/output
Amazon Web Services
 
cpp-2013 #4 Memory management
Amazon Web Services
 
cpp-2013 #3 OOP Basics
Amazon Web Services
 
cpp-2013 #2 Organizing your code
Amazon Web Services
 
cpp-2013 #1 C++ basics
Amazon Web Services
 
Ad

cpp-2013 #9 STL Algorithms Part 1