TerraLib 4.1
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/showseq.h
Go to the documentation of this file.
00001 // Template zur Anzeige von Sequenzen
00002 // Template for the display of sequences (file include/showseq)
00003 #ifndef SHOWSEQ_H
00004 #define SHOWSEQ_H
00005 
00006 #include<iostream>
00007 
00008 namespace br_stl {
00009 
00010 template<class Container>
00011 void showSequence(const Container& s, const char* sep = " ",
00012                   std::ostream& where = std::cout) {
00013    typename Container::const_iterator iter = s.begin();
00014    while(iter != s.end())
00015       where << *iter++ << sep;
00016    where << std::endl;
00017 }
00018 
00019 
00020 } // namespace br_stl
00021 
00022 #endif
00023 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines