This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Minor tweak to stl_map.h
- From: Paolo Carlini <pcarlini at suse dot de>
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 03 Apr 2007 10:54:06 +0200
- Subject: [v3] Minor tweak to stl_map.h
Hi,
committed to mainline and 4_2-branch.
Paolo.
//////////////
2007-04-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_map.h (map<>::insert(iterator, const value_type&):
Uglify parameter.
Index: stl_map.h
===================================================================
--- stl_map.h (revision 123450)
+++ stl_map.h (working copy)
@@ -1,6 +1,7 @@
// Map implementation -*- C++ -*-
-// Copyright (C) 2001, 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
+// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -394,7 +395,7 @@
*
* Insertion requires logarithmic time.
*/
- std::pair<iterator,bool>
+ std::pair<iterator, bool>
insert(const value_type& __x)
{ return _M_t._M_insert_unique(__x); }
@@ -422,8 +423,8 @@
* Insertion requires logarithmic time (if the hint is not taken).
*/
iterator
- insert(iterator position, const value_type& __x)
- { return _M_t._M_insert_unique_(position, __x); }
+ insert(iterator __position, const value_type& __x)
+ { return _M_t._M_insert_unique_(__position, __x); }
/**
* @brief Template function that attemps to insert a range of elements.