Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] Determining the properties bundle type
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2011-02-21 20:31:17


On Mon, 21 Feb 2011, Shaun Jackman wrote:

> Hi,
>
> What's the best way to determine the properties bundle type?
> G::vertex_bundled
> vertex_bundle_type<G>::type
> property_map_value<G, vertex_bundle_t>
>
> I'm trying to determine the type that will be returned by g[u] where g
> is a graph and u is a vertex_descriptor.

I would prefer the second, but you might like the third instead if you
need a well-defined value for graphs without bundled properties. The
vertex_bundle_t map isn't always defined for all graph types, but any
graphs that are missing it can be reported as bugs.

-- Jeremiah Willcock


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net