[mpl] Where is at with default

I can't seem to find the `at` metafunction with a default value for
associative sequences. What should I include to use such metafunction
with a mpl::map ? Including
::type
Thank you.- Agustín K-ballo Bergé.-

AMDG Agustín K-ballo Bergé wrote:
I can't seem to find the `at` metafunction with a default value for associative sequences. What should I include to use such metafunction with a mpl::map ? Including
is not enough, I get a 'too many templates arguments' when trying to do: typename boost::mpl::at< State, R, L >::type
which I ended up doing like this:
typename boost::mpl::eval_if< typename boost::mpl::has_key< State, R >::type , boost::mpl::at< State, R > , boost::mpl::identity< L >
::type
It doesn't exist. The documentation and the code are not in synch. In Christ, Steven Watanabe

It doesn't exist. The documentation and the code are not in synch.
Was it in the code and taken out? Is there plans to include it in the future so that the documentation is in synch? It seems like a useful feature. I've needed at one time and had to do a workaround since it didn't exist. I've see some questions in the last month or so that suggests that others need the feature as well. Ryan
participants (3)
-
Agustín K-ballo Bergé
-
Ryan McConnehey
-
Steven Watanabe