]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/src/string-inst.cc
re PR libstdc++/41763 (valarray_array.h seems to overuse __restrict__)
[thirdparty/gcc.git] / libstdc++-v3 / src / string-inst.cc
CommitLineData
b2dad0e3
BK
1// Components for manipulating sequences of characters -*- C++ -*-
2
50e9ed7c
PC
3// Copyright (C) 1997, 1998, 2009, 1999, 2000, 2001, 2002, 2003, 2004,
4// 2005, 2006, 2007, 2008, 2009
a32e3c09 5// Free Software Foundation, Inc.
b2dad0e3
BK
6//
7// This file is part of the GNU ISO C++ Library. This library is free
8// software; you can redistribute it and/or modify it under the
9// terms of the GNU General Public License as published by the
748086b7 10// Free Software Foundation; either version 3, or (at your option)
b2dad0e3
BK
11// any later version.
12
13// This library is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17
748086b7
JJ
18// Under Section 7 of GPL version 3, you are granted additional
19// permissions described in the GCC Runtime Library Exception, version
20// 3.1, as published by the Free Software Foundation.
21
22// You should have received a copy of the GNU General Public License and
23// a copy of the GCC Runtime Library Exception along with this program;
24// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
25// <http://www.gnu.org/licenses/>.
b2dad0e3
BK
26
27//
28// ISO C++ 14882: 21 Strings library
29//
30
31// Written by Jason Merrill based upon the specification by Takanori Adachi
32// in ANSI X3J16/94-0013R2. Rewritten by Nathan Myers.
33
54c1bf78 34#include <string>
b2dad0e3
BK
35
36// Instantiation configuration.
37#ifndef C
38# define C char
b2dad0e3
BK
39#endif
40
3cbc7af0
BK
41_GLIBCXX_BEGIN_NAMESPACE(std)
42
b2dad0e3
BK
43 typedef basic_string<C> S;
44
e61c3e8c 45 template class basic_string<C>;
e61c3e8c
BK
46 template S operator+(const C*, const S&);
47 template S operator+(C, const S&);
a7c67c71 48 template S operator+(const S&, const S&);
b2dad0e3 49
e61c3e8c
BK
50 // Only one template keyword allowed here.
51 // See core issue #46 (NAD)
52 // http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_closed.html#46
bf6adbe2
MM
53 template
54 S::basic_string(C*, C*, const allocator<C>&);
55
ea0c0b6e
BK
56 template
57 S::basic_string(const C*, const C*, const allocator<C>&);
58
b2dad0e3 59 template
e61c3e8c 60 S::basic_string(S::iterator, S::iterator, const allocator<C>&);
9b30b506 61
3cbc7af0
BK
62_GLIBCXX_END_NAMESPACE
63
64_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
285b36d6 65
285b36d6
BK
66 using std::S;
67 template bool operator==(const S::iterator&, const S::iterator&);
68 template bool operator==(const S::const_iterator&, const S::const_iterator&);
3cbc7af0
BK
69
70_GLIBCXX_END_NAMESPACE