std::string movie_name = *i++;
- tie(pos, inserted) = actors.insert(std::make_pair(*i, Vertex()));
+ boost::tie(pos, inserted) = actors.insert(std::make_pair(*i, Vertex()));
if (inserted) {
v = add_vertex(g);
actor_name[v] = *i;
@@ -190,7 +190,7 @@ the name of the connecting movie.
graph_traits<Graph>::edge_descriptor e;
- tie(e, inserted) = add_edge(u, v, g);
+ boost::tie(e, inserted) = add_edge(u, v, g);
if (inserted)
connecting_movie[e] = movie_name;
diff --git a/doc/opposite.html b/doc/opposite.html
index 6e3f12db..f9be2e47 100644
--- a/doc/opposite.html
+++ b/doc/opposite.html
@@ -56,7 +56,7 @@ target, then this function returns the source vertex.
edge_descriptor e;
...
vertex_descriptor u, v;
-tie(u, v) = incident(e, g);
+boost::tie(u, v) = incident(e, g);
assert(v == opposite(e, u, g));
assert(u == opposite(e, v, g));
diff --git a/doc/push_relabel_max_flow.html b/doc/push_relabel_max_flow.html
index cb96c83a..5dff0504 100644
--- a/doc/push_relabel_max_flow.html
+++ b/doc/push_relabel_max_flow.html
@@ -196,8 +196,8 @@ main()
std::cout << "c flow values:" << std::endl;
graph_traits<Graph>::vertex_iterator u_iter, u_end;
graph_traits<Graph>::out_edge_iterator ei, e_end;
- for (tie(u_iter, u_end) = vertices(g); u_iter != u_end; ++u_iter)
- for (tie(ei, e_end) = out_edges(*u_iter, g); ei != e_end; ++ei)
+ for (boost::tie(u_iter, u_end) = vertices(g); u_iter != u_end; ++u_iter)
+ for (boost::tie(ei, e_end) = out_edges(*u_iter, g); ei != e_end; ++ei)
if (capacity[*ei] > 0)
std::cout << "f " << *u_iter << " " << target(*ei, g) << " "
<< (capacity[*ei] - residual_capacity[*ei]) << std::endl;
diff --git a/doc/quick_tour.html b/doc/quick_tour.html
index 5ae9ffe9..5156bb7b 100644
--- a/doc/quick_tour.html
+++ b/doc/quick_tour.html
@@ -187,7 +187,7 @@ but in this case the iterators are edge iterators. Dereferencing an edge
iterator gives an edge object. The source() and target()
functions return the two vertices that are connected by the edge. Instead of
explicitly creating a std::pair for the iterators, this time we will
-use the tie() helper function.
+use the boost::tie() helper function.
This handy function can be used to assign the parts of a std::pair into
two separate variables, in this case ei and ei_end. This is
usually more convenient than creating a std::pair and is our method of
@@ -200,7 +200,7 @@ choice for the BGL.
// ...
std::cout << "edges(g) = ";
graph_traits<Graph>::edge_iterator ei, ei_end;
- for (tie(ei, ei_end) = edges(g); ei != ei_end; ++ei)
+ for (boost::tie(ei, ei_end) = edges(g); ei != ei_end; ++ei)
std::cout << "(" << index[source(*ei, g)]
<< "," << index[target(*ei, g)] << ") ";
std::cout << std::endl;
@@ -303,7 +303,7 @@ out-edge of vertex v.
std::cout << "out-edges: ";
typename GraphTraits::out_edge_iterator out_i, out_end;
typename GraphTraits::edge_descriptor e;
- for (tie(out_i, out_end) = out_edges(v, g);
+ for (boost::tie(out_i, out_end) = out_edges(v, g);
out_i != out_end; ++out_i) {
e = *out_i;
Vertex src = source(e, g), targ = target(e, g);
@@ -337,7 +337,7 @@ specified instead of directedS.
std::cout << "in-edges: ";
typedef typename graph_traits<Graph> GraphTraits;
typename GraphTraits::in_edge_iterator in_i, in_end;
- for (tie(in_i, in_end) = in_edges(v,g);
+ for (boost::tie(in_i, in_end) = in_edges(v,g);
in_i != in_end; ++in_i) {
e = *in_i;
Vertex src = source(e, g), targ = target(e, g);
@@ -373,7 +373,7 @@ descriptor for an adjacent vertex.
std::cout << "adjacent vertices: ";
typename graph_traits<Graph>::adjacency_iterator ai;
typename graph_traits<Graph>::adjacency_iterator ai_end;
- for (tie(ai, ai_end) = adjacent_vertices(v, g);
+ for (boost::tie(ai, ai_end) = adjacent_vertices(v, g);
ai != ai_end; ++ai)
std::cout << index[*ai] << " ";
std::cout << std::endl;
diff --git a/doc/sparse_matrix_ordering.html b/doc/sparse_matrix_ordering.html
index 87b39e7f..44a6a1bc 100644
--- a/doc/sparse_matrix_ordering.html
+++ b/doc/sparse_matrix_ordering.html
@@ -143,7 +143,7 @@ namespace boost {
rcm_queue<Vertex, Degree> Q(degree);
typename boost::graph_traits<Graph>::vertex_iterator ui, ui_end;
- for (tie(ui, ui_end) = vertices(G); ui != ui_end; ++ui)
+ for (boost::tie(ui, ui_end) = vertices(G); ui != ui_end; ++ui)
put(color, *ui, white(c));
breadth_first_search(G, u, Q, bfs_visitor<>(), color);
@@ -214,7 +214,7 @@ from BGL can be reused.
CMVisitor cm_visitor(inverse_permutation);
typename boost::graph_traits<Graph>::vertex_iterator ui, ui_end;
- for (tie(ui, ui_end) = vertices(G); ui != ui_end; ++ui)
+ for (boost::tie(ui, ui_end) = vertices(G); ui != ui_end; ++ui)
put(color, *ui, white(c));
breadth_first_search(G, s, Q, cm_visitor, color);
}
diff --git a/doc/write_graphml.html b/doc/write_graphml.html
index b3bbd131..8ed7127a 100644
--- a/doc/write_graphml.html
+++ b/doc/write_graphml.html
@@ -116,11 +116,11 @@ int main(int,char*[])
Graph g(used_by, used_by + nedges, N);
graph_traits<Graph>::vertex_iterator v, v_end;
- for (tie(v,v_end) = vertices(g); v != v_end; ++v)
+ for (boost::tie(v,v_end) = vertices(g); v != v_end; ++v)
put(vertex_color_t(), g, *v, name[*v]);
graph_traits<Graph>::edge_iterator e, e_end;
- for (tie(e,e_end) = edges(g); e != e_end; ++e)
+ for (boost::tie(e,e_end) = edges(g); e != e_end; ++e)
put(edge_weight_t(), g, *e, 3);
dynamic_properties dp;