Skip to content

Containers templates de la STL, iterators and algorithms.

Notifications You must be signed in to change notification settings

Abensett/20.CPP-MODULE-08

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

20.-CPP-MODULE-08

La STL = Standard Template Library

Containers templates

Self-explanatory see the example

  • list
  • map
  • vector -> equivalent tableau
list<int>			lst;
list<int>::const_iterator	iter;
list<int>::const_iterator	itend = lst.end();
for (iter = lst.begin(); iter != itened; iter++)
{
	cout << *it << endl; 				// Deferencement possible	
}

Iterators

"Pointeurs pour les containers"
Plus d'informations dans le projet : Ft_containers

Algorithmes

#include <algorithm>
for_each(lst.begin(),lst.end(), display) 		// (iter, itend, fcn)

About

Containers templates de la STL, iterators and algorithms.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published