This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

libstdc++ PATCH : Add missing basic_string<>::push_back



I committed the patchlet below on the mainline.  It defines the
missing basic_string<>::push_back.  I think it should go on the branch
as well. 

-- Gaby

2000-03-10  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>

	* std/bastring.h (basic_string<>::push_back): Was missing.

Index: bastring.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++/std/bastring.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -p -r1.21 -r1.22
*** bastring.h	1999/12/15 07:43:22	1.21
--- bastring.h	2000/03/10 21:20:08	1.22
*************** public:
*** 213,218 ****
--- 213,221 ----
  #endif
      { return replace (iend (), iend (), first, last); }
  
+   void push_back(charT __c)
+   { append(1, __c); }
+ 
    basic_string& assign (const basic_string& str, size_type pos = 0,
  			size_type n = npos)
      { return replace (0, npos, str, pos, n); }

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