Re: Initializing a map...
This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.
--=_mimegpg-commodore.email-scan.com-10888-1203595835-0001
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Jeff Schwab writes:
#include <iostream>
#include <ostream>
int main()
{
std::map<int, int> m(map_initializer(3,4)(5,6)(7,8));
...
return 0;
}
That's a neat idea. It could probably be made a little more efficient
by replacing the calls to map::operator[] with calls to map::find and
operator[] takes only one argument. You can use a std::pair, but it'll make
this even more ugly.
--=_mimegpg-commodore.email-scan.com-10888-1203595835-0001
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQBHvWo7x9p3GYHlUOIRAnzkAJ9rd3VYOlnl6mk9f6Nk2mVwbrt4/QCbBVn+
wvGArnNFpaAb6SHW9LJnAJU=
=2p1k
-----END PGP SIGNATURE-----
--=_mimegpg-commodore.email-scan.com-10888-1203595835-0001--