# concept-inst.cc

    00001 // Concept checking instantiations -*- C++ -*-
    00002
    00003 // Copyright (C) 2001, 2002 Free Software Foundation
    00004 //
    00005 // This file is part of GNU CC.
    00006 //
    00007 // GNU CC is free software; you can redistribute it and/or modify
    00008 // it under the terms of the GNU General Public License as published by
    00009 // the Free Software Foundation; either version 2, or (at your option)
    00010 // any later version.
    00011 //
    00012 // GNU CC 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
    00018 // along with GNU CC; see the file COPYING.  If not, write to
    00019 // the Free Software Foundation, 59 Temple Place - Suite 330,
    00020 // Boston, MA 02111-1307, 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
    00026 // file does not by itself cause the resulting executable to be covered by
    00027 // the GNU General Public License.  This exception does not however
    00028 // invalidate any other reasons why the executable file might be covered by
    00029 // the GNU General Public License.
    00030
    00031 // The implementation of some of the more complex checks uses the simple
    00032 // checks (good reuse of code), thereby requiring that the simple checks
    00033 // be instantiated somewhere.  The simple checks use other simple checks,
    00034 // and so on, until a couple hundred symbols all need instantiations.  We
    00035 // explicitly instantiate the initial set of symbols; compiling this file
    00036 // with -fimplicit-templates will take care of the rest for us.
    00037
    00038 #include <bits/concept_check.h>
    00039
    00040 #ifdef _GLIBCPP_CONCEPT_CHECKS
    00041
    00042 #include <memory>
    00043 #include <ostream>
    00044
    00045 #define _Instantiate(...) template void __function_requires< __VA_ARGS__ > ()
    00046
    00047 namespace __gnu_cxx
    00048 {
    00049   template void __aux_require_boolean_expr<bool>(bool const&);
    00050
    00051   _Instantiate(_ConvertibleConcept<unsigned, unsigned> );
    00052
    00053   _Instantiate(_InputIteratorConcept<char*> );
    00054
    00055   _Instantiate(_InputIteratorConcept<char const*> );
    00056
    00057 #ifdef _GLIBCPP_USE_WCHAR_T
    00058   _Instantiate(_InputIteratorConcept<wchar_t*> );
    00059
    00060   _Instantiate(_InputIteratorConcept<wchar_t const*> );
    00061
    00062   _Instantiate(_LessThanComparableConcept<wchar_t*> );
    00063 #endif
    00064
    00065   _Instantiate(_LessThanComparableConcept<char*> );
    00066
    00067   _Instantiate(_LessThanComparableConcept<int> );
    00068
    00069   _Instantiate(_LessThanComparableConcept<long> );
    00070
    00071   _Instantiate(_LessThanComparableConcept<long long> );
    00072
    00073   _Instantiate(_LessThanComparableConcept<unsigned> );
    00074
    00075   _Instantiate(_OutputIteratorConcept<std::ostreambuf_iterator<
    00076     char, std::char_traits<char> >, char> );
    00077
    00078 #ifdef _GLIBCPP_USE_WCHAR_T
    00079   _Instantiate(_OutputIteratorConcept<std::ostreambuf_iterator<
    00080     wchar_t, std::char_traits<wchar_t> >, wchar_t> );
    00081 #endif
    00082
    00083   _Instantiate(_RandomAccessIteratorConcept<char*> );
    00084
    00085   _Instantiate(_RandomAccessIteratorConcept<char const*> );
    00086
    00087   _Instantiate(_RandomAccessIteratorConcept<
    00088     __normal_iterator<char const*, std::string> > );
    00089
    00090   _Instantiate(_RandomAccessIteratorConcept<
    00091     __normal_iterator<char*, std::string> > );
    00092
    00093 #ifdef _GLIBCPP_USE_WCHAR_T
    00094   _Instantiate(_RandomAccessIteratorConcept<
    00095     __normal_iterator<wchar_t const*,
    00096     std::basic_string<wchar_t, std::char_traits<wchar_t>,
    00097                                std::allocator<wchar_t> > > > );
    00098
    00099   _Instantiate(_RandomAccessIteratorConcept<
    00100     __normal_iterator<wchar_t*,
    00101     std::basic_string<wchar_t, std::char_traits<wchar_t>,
    00102                                std::allocator<wchar_t> > > > );
    00103
    00104   _Instantiate(_RandomAccessIteratorConcept<wchar_t*> );
    00105
    00106   _Instantiate(_RandomAccessIteratorConcept<wchar_t const*> );
    00107 #endif
    00108 } // namespace __gnu_cxx
    00109
    00110 #undef _Instantiate
    00111
    00112 #endif