Boost logo

Boost Users :

Subject: Re: [Boost-users] [General] Pointer dereferencing by fn call.
From: joaquin_at_[hidden]
Date: 2009-06-23 08:32:40


Robert Jones escribió:
> Does this
>
> template<class T> T& *deref*( T* p ) { return *p; }
>
> exist anywhere in Boost?

Boost.MultiIndex identity extractor:

http://www.boost.org/libs/multi_index/doc/reference/key_extraction.html#identity

can fit the bill, I guess.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


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