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