]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/src/c++98/concept-inst.cc
New std::string implementation.
[thirdparty/gcc.git] / libstdc++-v3 / src / c++98 / concept-inst.cc
CommitLineData
4d16bdbb
PE
1// Concept checking instantiations -*- C++ -*-
2
aa118a03 3// Copyright (C) 2001-2014 Free Software Foundation, Inc.
4d16bdbb 4//
38cca750
BK
5// This file is part of the GNU ISO C++ Library. This library is free
6// software; you can redistribute it and/or modify it under the
7// terms of the GNU General Public License as published by the
748086b7 8// Free Software Foundation; either version 3, or (at your option)
4d16bdbb 9// any later version.
38cca750
BK
10
11// This library is distributed in the hope that it will be useful,
4d16bdbb
PE
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
38cca750 15
748086b7
JJ
16// Under Section 7 of GPL version 3, you are granted additional
17// permissions described in the GCC Runtime Library Exception, version
18// 3.1, as published by the Free Software Foundation.
19
20// You should have received a copy of the GNU General Public License and
21// a copy of the GCC Runtime Library Exception along with this program;
22// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23// <http://www.gnu.org/licenses/>.
4d16bdbb
PE
24
25// The implementation of some of the more complex checks uses the simple
26// checks (good reuse of code), thereby requiring that the simple checks
27// be instantiated somewhere. The simple checks use other simple checks,
28// and so on, until a couple hundred symbols all need instantiations. We
29// explicitly instantiate the initial set of symbols; compiling this file
30// with -fimplicit-templates will take care of the rest for us.
31
34a2b755 32#define _GLIBCXX_USE_CXX11_ABI 0
4d16bdbb
PE
33#include <bits/concept_check.h>
34
3d7c150e 35#ifdef _GLIBCXX_CONCEPT_CHECKS
4d16bdbb 36
54c1bf78 37#include <memory>
e6686813 38#include <iterator>
54c1bf78 39#include <ostream>
4d16bdbb
PE
40
41#define _Instantiate(...) template void __function_requires< __VA_ARGS__ > ()
42
12ffa228
BK
43namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
44{
45_GLIBCXX_BEGIN_NAMESPACE_VERSION
3cbc7af0 46
4d16bdbb
PE
47 template void __aux_require_boolean_expr<bool>(bool const&);
48
4d16bdbb
PE
49 _Instantiate(_ConvertibleConcept<unsigned, unsigned> );
50
51 _Instantiate(_InputIteratorConcept<char*> );
52
53 _Instantiate(_InputIteratorConcept<char const*> );
54
3d7c150e 55#ifdef _GLIBCXX_USE_WCHAR_T
4d16bdbb
PE
56 _Instantiate(_InputIteratorConcept<wchar_t*> );
57
58 _Instantiate(_InputIteratorConcept<wchar_t const*> );
59
60 _Instantiate(_LessThanComparableConcept<wchar_t*> );
61#endif
62
63 _Instantiate(_LessThanComparableConcept<char*> );
64
65 _Instantiate(_LessThanComparableConcept<int> );
66
67 _Instantiate(_LessThanComparableConcept<long> );
68
4d16bdbb 69 _Instantiate(_LessThanComparableConcept<long long> );
4d16bdbb
PE
70
71 _Instantiate(_LessThanComparableConcept<unsigned> );
72
4d16bdbb
PE
73 _Instantiate(_OutputIteratorConcept<std::ostreambuf_iterator<
74 char, std::char_traits<char> >, char> );
75
3d7c150e 76#ifdef _GLIBCXX_USE_WCHAR_T
4d16bdbb
PE
77 _Instantiate(_OutputIteratorConcept<std::ostreambuf_iterator<
78 wchar_t, std::char_traits<wchar_t> >, wchar_t> );
79#endif
80
81 _Instantiate(_RandomAccessIteratorConcept<char*> );
82
83 _Instantiate(_RandomAccessIteratorConcept<char const*> );
84
85 _Instantiate(_RandomAccessIteratorConcept<
f1e888ae 86 __normal_iterator<char const*, std::string> > );
4d16bdbb
PE
87
88 _Instantiate(_RandomAccessIteratorConcept<
f1e888ae 89 __normal_iterator<char*, std::string> > );
4d16bdbb 90
3d7c150e 91#ifdef _GLIBCXX_USE_WCHAR_T
4d16bdbb 92 _Instantiate(_RandomAccessIteratorConcept<
f1e888ae 93 __normal_iterator<wchar_t const*,
4d16bdbb
PE
94 std::basic_string<wchar_t, std::char_traits<wchar_t>,
95 std::allocator<wchar_t> > > > );
96
97 _Instantiate(_RandomAccessIteratorConcept<
f1e888ae 98 __normal_iterator<wchar_t*,
4d16bdbb
PE
99 std::basic_string<wchar_t, std::char_traits<wchar_t>,
100 std::allocator<wchar_t> > > > );
101
102 _Instantiate(_RandomAccessIteratorConcept<wchar_t*> );
103
104 _Instantiate(_RandomAccessIteratorConcept<wchar_t const*> );
105#endif
3cbc7af0 106
12ffa228
BK
107_GLIBCXX_END_NAMESPACE_VERSION
108} // namespace
4d16bdbb
PE
109
110#undef _Instantiate
111
112#endif