Boost logo

Boost Users :

Subject: Re: [Boost-users] [Property Map] given a function/functor, how to construct readable property map?
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2012-03-20 15:23:36

On Tue, 20 Mar 2012, Frank Birbacher wrote:

> Hash: SHA1
> Hi!
> I have graph structure using custom datatypes. An edge weight can be
> calculated by calling some function. I want to call the dag shortest
> path algorithm and pass it a property map that uses the function to
> compute edge weights on the fly. I consulted the Boost 1.47
> documentation for property map. I find identity or std::map adaptors,
> but did not find any reference to using functions or functors. Do I
> miss anything?

There's an unofficial function_property_map that has been posted on the
Boost-users list, such as at; it really
should be put into Boost proper but hasn't yet.

-- Jeremiah Willcock

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at