#include <vector>
#include <map>
#include <iostream>
Go to the source code of this file.
Classes | |
class | graph< N, E > |
class | graph< N, E >::const_iterator |
struct | graph< N, E >::const_iterator::value_type |
struct | graph< N, E >::value_type |
Functions | |
template<typename T> | |
std::ostream & | operator<< (std::ostream &o, const std::vector< std::vector< std::pair< T, T > > > v) |
std::ostream& operator<< | ( | std::ostream & | o, | |
const std::vector< std::vector< std::pair< T, T > > > | v | |||
) | [inline] |
Definition at line 441 of file adjgraph.h.
References lat::endl(), it, and v.
00442 { 00443 typedef typename std::vector<std::vector<std::pair<T,T> > > v_t; 00444 typedef typename std::vector<std::pair<T,T> > i_t; 00445 00446 typename v_t::const_iterator it(v.begin()), ed(v.end()); 00447 for (; it != ed; ++it) { 00448 typename i_t::const_iterator iit(it->begin()), ied(it->end()); 00449 for(; iit != ied; ++iit) { 00450 o << iit->first << ':' << iit->second << std::endl; 00451 } 00452 } 00453 return o; 00454 }