bind_iterate.h

Go to the documentation of this file.
00001 // TR1 functional -*- C++ -*-
00002 
00003 // Copyright (C) 2005 Free Software Foundation, Inc.
00004 // Written by Douglas Gregor <doug.gregor -at- gmail.com>
00005 //
00006 // This file is part of the GNU ISO C++ Library.  This library is free
00007 // software; you can redistribute it and/or modify it under the
00008 // terms of the GNU General Public License as published by the
00009 // Free Software Foundation; either version 2, or (at your option)
00010 // any later version.
00011 
00012 // This library 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 along
00018 // with this library; see the file COPYING.  If not, write to the Free
00019 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
00020 // 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 /** @file tr1/bind_iterate.h
00032  *  This is an internal header file, included by other library headers.
00033  *  You should not attempt to use it directly.
00034  */
00035 
00036 #if _GLIBCXX_BIND_NUM_ARGS > 0
00037 template<_GLIBCXX_BIND_TEMPLATE_PARAMS>
00038 #endif
00039 #ifdef _GLIBCXX_BIND_HAS_RESULT_TYPE
00040 result_type
00041 #else
00042 typename result_of<_Functor(_GLIBCXX_BIND_V_TEMPLATE_ARGS())>::type
00043 #endif
00044 operator()(_GLIBCXX_BIND_PARAMS)
00045 { return _M_f(_GLIBCXX_BIND_V_ARGS); }
00046 
00047 #if _GLIBCXX_BIND_NUM_ARGS > 0
00048 template<_GLIBCXX_BIND_TEMPLATE_PARAMS>
00049 #endif
00050 #ifdef _GLIBCXX_BIND_HAS_RESULT_TYPE
00051 result_type
00052 #else
00053 typename result_of<const _Functor(_GLIBCXX_BIND_V_TEMPLATE_ARGS(const))>::type
00054 #endif
00055 operator()(_GLIBCXX_BIND_PARAMS) const
00056 { return _M_f(_GLIBCXX_BIND_V_ARGS); }
00057 
00058 #if _GLIBCXX_BIND_NUM_ARGS > 0
00059 template<_GLIBCXX_BIND_TEMPLATE_PARAMS>
00060 #endif
00061 #ifdef _GLIBCXX_BIND_HAS_RESULT_TYPE
00062 result_type
00063 #else
00064 typename result_of<volatile _Functor(_GLIBCXX_BIND_V_TEMPLATE_ARGS(volatile))>::type
00065 #endif
00066 operator()(_GLIBCXX_BIND_PARAMS) volatile
00067 { return _M_f(_GLIBCXX_BIND_V_ARGS); }
00068 
00069 #if _GLIBCXX_BIND_NUM_ARGS > 0
00070 template<_GLIBCXX_BIND_TEMPLATE_PARAMS>
00071 #endif
00072 #ifdef _GLIBCXX_BIND_HAS_RESULT_TYPE
00073 result_type
00074 #else
00075 typename result_of<const volatile _Functor(_GLIBCXX_BIND_V_TEMPLATE_ARGS(const volatile))>::type
00076 #endif
00077 operator()(_GLIBCXX_BIND_PARAMS) const volatile
00078 { return _M_f(_GLIBCXX_BIND_V_ARGS); }

Generated on Thu Nov 1 13:11:20 2007 for libstdc++ by  doxygen 1.5.1