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)

PPT
standard template library(STL) in C++
•sreejith •sree
 
PDF
Effective stl notes
Uttam Gandhi
 
PPT
Standard Template Library
Kumar Gaurav
 
PPTX
C++ STL (quickest way to learn, even for absolute beginners).pptx
Abhishek Tirkey
 
PPTX
C++ STL (quickest way to learn, even for absolute beginners).pptx
GauravPandey43518
 
PPTX
Unit v
donny101
 
PPTX
Object Oriented Programming Using C++: C++ STL Programming.pptx
RashidFaridChishti
 
PDF
Lambda
visayafan
 
PPT
Life & Work of Robin Milner | Turing100@Persistent
Persistent Systems Ltd.
 
PDF
iRODS Rule Language Cheat Sheet
Samuel Lampa
 
PDF
Ds lab handouts
Ayesha Bhatti
 
PDF
STL in C++
Surya Prakash Sahu
 
ODP
C++ STL 概觀
PingLun Liao
 
PPTX
C++11 - A Change in Style - v2.0
Yaser Zhian
 
PDF
Cooking Software101
Pere Urbón-Bayes
 
PDF
Dimitry Solovyov - The imminent threat of functional programming
Dmitry Buzdin
 
PDF
iterators-must-go
Hiroshi Ono
 
DOC
C++ Online Training
Srihitha Technologies
 
PDF
Data Structure - Lecture 2 - Recursion Stack Queue.pdf
donotreply20
 
standard template library(STL) in C++
•sreejith •sree
 
Effective stl notes
Uttam Gandhi
 
Standard Template Library
Kumar Gaurav
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
Abhishek Tirkey
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
GauravPandey43518
 
Unit v
donny101
 
Object Oriented Programming Using C++: C++ STL Programming.pptx
RashidFaridChishti
 
Lambda
visayafan
 
Life & Work of Robin Milner | Turing100@Persistent
Persistent Systems Ltd.
 
iRODS Rule Language Cheat Sheet
Samuel Lampa
 
Ds lab handouts
Ayesha Bhatti
 
STL in C++
Surya Prakash Sahu
 
C++ STL 概觀
PingLun Liao
 
C++11 - A Change in Style - v2.0
Yaser Zhian
 
Cooking Software101
Pere Urbón-Bayes
 
Dimitry Solovyov - The imminent threat of functional programming
Dmitry Buzdin
 
iterators-must-go
Hiroshi Ono
 
C++ Online Training
Srihitha Technologies
 
Data Structure - Lecture 2 - Recursion Stack Queue.pdf
donotreply20
 
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