string-inst.cc

00001 // Components for manipulating sequences of characters -*- C++ -*-
00002 
00003 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
00004 // Free Software Foundation, Inc.
00005 //
00006 // This file is part of the GNU ISO C++ Library.  This library is free
00007 // software; you can redistribute it and/or modify it under the
00008 // terms of the GNU General Public License as published by the
00009 // Free Software Foundation; either version 2, or (at your option)
00010 // any later version.
00011 
00012 // This library is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 
00017 // You should have received a copy of the GNU General Public License along
00018 // with this library; see the file COPYING.  If not, write to the Free
00019 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
00020 // USA.
00021 
00022 // As a special exception, you may use this file as part of a free software
00023 // library without restriction.  Specifically, if other files instantiate
00024 // templates or use macros or inline functions from this file, or you compile
00025 // this file and link it with other files to produce an executable, this// file does not by itself cause the resulting executable to be covered by
00026 // the GNU General Public License.  This exception does not however
00027 // invalidate any other reasons why the executable file might be covered by
00028 // the GNU General Public License.
00029 
00030 //
00031 // ISO C++ 14882: 21  Strings library
00032 //
00033 
00034 // Written by Jason Merrill based upon the specification by Takanori Adachi
00035 // in ANSI X3J16/94-0013R2.  Rewritten by Nathan Myers.
00036 
00037 #include <string>
00038 
00039 // Instantiation configuration.
00040 #ifndef C
00041 # define C char
00042 #endif
00043 
00044 namespace std 
00045 {
00046   typedef basic_string<C> S;
00047 
00048   template class basic_string<C>;
00049   template S operator+(const C*, const S&);
00050   template S operator+(C, const S&);
00051 } // namespace std
00052 
00053 namespace __gnu_cxx
00054 {
00055   using std::S;
00056   template bool operator==(const S::iterator&, const S::iterator&);
00057   template bool operator==(const S::const_iterator&, const S::const_iterator&);
00058 }
00059 
00060 namespace std
00061 {
00062   // Only one template keyword allowed here. 
00063   // See core issue #46 (NAD)
00064   // http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_closed.html#46
00065   template
00066     S::basic_string(C*, C*, const allocator<C>&);
00067 
00068   template
00069     S::basic_string(const C*, const C*, const allocator<C>&);
00070 
00071   template 
00072     S::basic_string(S::iterator, S::iterator, const allocator<C>&);
00073 
00074   template 
00075     S::basic_string(S::const_iterator, S::const_iterator, const allocator<C>&);
00076 
00077   template 
00078     S& 
00079     S::_M_replace(S::iterator, S::iterator, S::iterator, S::iterator, 
00080           input_iterator_tag);
00081 
00082   template 
00083     S& 
00084     S::_M_replace(S::iterator, S::iterator, S::const_iterator, 
00085           S::const_iterator, input_iterator_tag);
00086 
00087   template
00088     S&
00089     S::_M_replace(S::iterator, S::iterator, C*, C*, input_iterator_tag); 
00090 
00091   template
00092     S&
00093     S::_M_replace(S::iterator, S::iterator, const C*, const C*, 
00094           input_iterator_tag);  
00095 
00096   template 
00097     S& 
00098     S::_M_replace_safe(S::iterator, S::iterator, S::iterator, S::iterator);
00099 
00100   template 
00101     S& 
00102     S::_M_replace_safe(S::iterator, S::iterator, S::const_iterator, 
00103           S::const_iterator);
00104 
00105   template
00106     S&
00107     S::_M_replace_safe(S::iterator, S::iterator, C*, C*); 
00108 
00109   template
00110     S&
00111     S::_M_replace_safe(S::iterator, S::iterator, const C*, const C*);  
00112 
00113   template 
00114     C* 
00115     S::_S_construct(S::iterator, S::iterator, 
00116             const allocator<C>&, forward_iterator_tag);
00117 
00118   template 
00119     C* 
00120     S::_S_construct(S::const_iterator, S::const_iterator, 
00121             const allocator<C>&, forward_iterator_tag);
00122 
00123   template
00124     C*
00125     S::_S_construct(C*, C*, const allocator<C>&, forward_iterator_tag);
00126 
00127   template
00128     C*
00129     S::_S_construct(const C*, const C*, const allocator<C>&,
00130             forward_iterator_tag);
00131 
00132   template
00133     void
00134     __destroy_aux<S*>(S*, S*, __false_type);
00135 } // namespace std

Generated on Wed May 1 19:19:38 2002 for libstdc++-v3 Source by doxygen1.2.15