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:

> -----BEGIN PGP SIGNED MESSAGE-----
> 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
http://comments.gmane.org/gmane.comp.lib.boost.user/54397; it really
should be put into Boost proper but hasn't yet.

-- 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