
Hi: Thanks for that, Can I fill a map up at construction withou using std::Map::Insert? Can I do this with Boost::MultiIndex? Sean. -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of JOAQUIN M. LOPEZ MUÑOZ Sent: 06 June 2008 18:56 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Boost::MultiIndex or std::map Hi Sean, ________________________________________ De: boost-users-bounces@lists.boost.org [boost-users-bounces@lists.boost.org] En nombre de Sean Farrow [sean.farrow@seanfarrow.co.uk] Enviado el: viernes, 06 de junio de 2008 19:26 Para: boost-users@lists.boost.org Asunto: [Boost-users] Boost::MultiIndex or std::map
Hi: I am in a situation where by I need to be able to query an associative container. I need to fill the container before querying. The key is an integer and the vlaue is a std::string. Can I construct boost::multiIndex so as to allow key/value pairs to be entered at construction time or should I just use std::map and write a function.
I'm not sure I'm getting your question, but certainly you can fill up a std::map with key/value pairs before querying it!
std::map