Whole document tree
    

Whole document tree

string-inst.cc Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

string-inst.cc

Go to the documentation of this file.
00001 // Components for manipulating sequences of characters -*- C++ -*-
00002 
00003 // Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
00004 //
00005 // This file is part of the GNU ISO C++ Library.  This library is free
00006 // software; you can redistribute it and/or modify it under the
00007 // terms of the GNU General Public License as published by the
00008 // Free Software Foundation; either version 2, or (at your option)
00009 // any later version.
00010 
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 
00016 // You should have received a copy of the GNU General Public License along
00017 // with this library; see the file COPYING.  If not, write to the Free
00018 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
00019 // USA.
00020 
00021 // As a special exception, you may use this file as part of a free software
00022 // library without restriction.  Specifically, if other files instantiate
00023 // templates or use macros or inline functions from this file, or you compile
00024 // this file and link it with other files to produce an executable, this
00025 // 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 <bits/std_string.h>
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::size_type S::_Rep::_S_max_size;
00050 
00051   template S operator+(const C*, const S&);
00052   template S operator+(C, const S&);
00053   template bool operator==(const S::iterator&, const S::iterator&);
00054   template bool operator==(const S::const_iterator&, const S::const_iterator&);
00055 
00056   // Only one template keyword allowed here. 
00057   // See core issue #46 (NAD)
00058   // http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_closed.html#46
00059   template 
00060     S& 
00061     S::_M_replace<S::iterator>
00062     (S::iterator, S::iterator, S::iterator, S::iterator, forward_iterator_tag);
00063 
00064   template 
00065     S& 
00066     S::_M_replace<S::const_iterator>
00067     (S::iterator, S::iterator, 
00068      S::const_iterator, S::const_iterator, forward_iterator_tag);
00069 
00070   template 
00071     C* 
00072     S::_S_construct<S::iterator>
00073     (S::iterator, S::iterator, const allocator<C>&, forward_iterator_tag);
00074 
00075   template
00076     S::basic_string(C*, C*, const allocator<C>&);
00077 
00078   template 
00079     S::basic_string(S::iterator, S::iterator, const allocator<C>&);
00080 
00081   template
00082     S&
00083     S::_M_replace(S::iterator, S::iterator, C*, C*, forward_iterator_tag);  
00084 
00085   template
00086     S&
00087     S::_M_replace(S::iterator, S::iterator, const C*, const C*, 
00088           forward_iterator_tag);  
00089 
00090   template
00091     C*
00092     S::_S_construct(const C*, const C*, const allocator<C>&, 
00093             forward_iterator_tag);
00094 
00095   template
00096     C*
00097     S::_S_construct (C*, C*, const allocator<C>&, 
00098              forward_iterator_tag);
00099 
00100   template
00101     void
00102     __destroy_aux<S*>(S*, S*, _Bool<false>);
00103 } // namespace std

Generated on Mon Apr 8 03:11:46 2002 for libstdc++-v3 Source by doxygen1.2.15