This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1894.pdf

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);

write

auto iter_pair = some_map.equal_range(key);




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]