Opened 3 years ago

#10090 new Bugs

[graph] missing documentation : member functions for bundled property in adjacency_list

Reported by: Akira Takahashi <faithandbrave@…> Owned by: Jeremiah Willcock
Milestone: To Be Determined Component: graph
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:


In Bundled property's documentation, operator[ ] is documented.

Map map; // load the map
Map::vertex_descriptor v = *vertices(map).first;
map[v].name = "Troy";
map[v].population = 49170;

But, In adjacency_list documentation is not.

Should add follow member functions reference:

// boost/graph/adjacency_list.hpp
vertex_bundled& operator[](vertex_descriptor v)
{ return get(vertex_bundle, *this)[v]; }

const vertex_bundled& operator[](vertex_descriptor v) const
{ return get(vertex_bundle, *this)[v]; }

edge_bundled& operator[](edge_descriptor e)
{ return get(edge_bundle, *this)[e]; }

const edge_bundled& operator[](edge_descriptor e) const
{ return get(edge_bundle, *this)[e]; }

graph_bundled& operator[](graph_bundle_t)
{ return get_property(*this); }

graph_bundled const& operator[](graph_bundle_t) const
{ return get_property(*this); }

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Jeremiah Willcock.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.