Fwd: C++ PATCH: PR 20599 (1/3)

Joe Buck Joe.Buck@synopsys.COM
Tue Sep 19 17:38:00 GMT 2006

On Tue, Sep 19, 2006 at 07:13:29PM +0200, Gabriel Dos Reis wrote:
>    http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2006/n2011.htm
>    http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2006/n2051.htm

Thanks for the pointers.

The new feature I most want to use is "auto", which I'm happy to see
has made it into the working paper (I'd heard it had, but thanks for
the confirmation).  See


Right now I notice that some C++ programmers avoid certain standard
interfaces, because of the complicated declarations they would have
to write to use those interfaces. Example:

std::multimap<std::string, std::string> some_map;

instead of

std::pair<std::multimap<std::string, std::string>::iterator,
          std::multimap<std::string, std::string>::iterator>
	     iter_pair = some_map.equal_range(key);


auto iter_pair = some_map.equal_range(key);

More information about the Libstdc++ mailing list