[Boost.Container] Need map supporting incomplete type and heterogeneous lookup
Hi, I see that boost::container::map has support for incomplete types. However, it does not seem to support heterogeneous lookup. Is this correct? Are there plans to implement it? Is there anywhere in Boost a std::map-like associative container that supports incomplete types *and* heterogeneous lookup? Thanks!
On Mon, Nov 30, 2015 at 11:13 AM,
Is there anywhere in Boost a std::map-like associative container that supports incomplete types *and* heterogeneous lookup?
Are you referring to the "Compatible Key" concept of Boost.BMI [1] when you refer to "heterogeneous lookup"? --DD PS: FWIW, Boost,BMI does not support incomplete types apparently. See [2]. [1] http://www.boost.org/doc/libs/1_59_0/libs/multi_index/doc/reference/hash_ind... [2] http://boost.2283326.n4.nabble.com/MultiIndex-Recursive-data-structure-with-...
Il 30/11/2015 11:27, Dominique Devienne ha scritto:
On Mon, Nov 30, 2015 at 11:13 AM,
mailto:dariomt@gmail.com> wrote: Is there anywhere in Boost a std::map-like associative container that supports incomplete types *and* heterogeneous lookup?
As regards std::map of incomplete types a possibile solution should be to use a std::map of boost::shared_ptr sorry, but what do you mean with " heterogeneous lookup" ? regards Lorenzo
Not the OP, but I assume he means the C++14 is_transparent version of find template< class K > iterator find( const K& x ); http://en.cppreference.com/w/cpp/container/map/find http://stackoverflow.com/questions/20317413/what-are-transparent-comparators
On 30/11/2015 11:13, dariomt@gmail.com wrote:
Hi,
I see that boost::container::map has support for incomplete types. However, it does not seem to support heterogeneous lookup. Is this correct? Are there plans to implement it?
It's in the to-do list, but not in the short term. Sorry for the bad news ;-) Best, Ion
participants (5)
-
dariomt@gmail.com
-
Dominique Devienne
-
Ion Gaztañaga
-
Lorenzo Trivelli
-
Steve Lorimer