ref_fwd.h

Go to the documentation of this file.
00001 
00002 
00003 // class template reference_wrapper forwarding header -*- C++ -*-
00004 
00005 // Copyright (C) 2004, 2005 Free Software Foundation, Inc.
00006 //
00007 // This file is part of the GNU ISO C++ Library.  This library is free
00008 // software; you can redistribute it and/or modify it under the
00009 // terms of the GNU General Public License as published by the
00010 // Free Software Foundation; either version 2, or (at your option)
00011 // any later version.
00012 
00013 // This library is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 // GNU General Public License for more details.
00017 
00018 // You should have received a copy of the GNU General Public License along
00019 // with this library; see the file COPYING.  If not, write to the Free
00020 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
00021 // USA.
00022 
00023 // As a special exception, you may use this file as part of a free software
00024 // library without restriction.  Specifically, if other files instantiate
00025 // templates or use macros or inline functions from this file, or you compile
00026 // this file and link it with other files to produce an executable, this
00027 // file does not by itself cause the resulting executable to be covered by
00028 // the GNU General Public License.  This exception does not however
00029 // invalidate any other reasons why the executable file might be covered by
00030 // the GNU General Public License.
00031 
00032 /** @file tr1/ref_fwd.h
00033  *  This is an internal header file, included by other library headers.
00034  *  You should not attempt to use it directly.
00035  */
00036 
00037 // Douglas Gregor <doug.gregor -at- gmail.com>
00038 #ifndef _TR1_REF_FWD
00039 #define _TR1_REF_FWD
00040 
00041 namespace std
00042 {
00043 _GLIBCXX_BEGIN_NAMESPACE(tr1)
00044 
00045 template<typename _Tp>
00046   class reference_wrapper;
00047 
00048 template<typename _Tp>
00049   reference_wrapper<_Tp>
00050   ref(_Tp& __t);
00051 
00052   // Denotes a const reference should be taken to a variable.
00053 template<typename _Tp>
00054   reference_wrapper<const _Tp>
00055   cref(const _Tp& __t);
00056 
00057 _GLIBCXX_END_NAMESPACE
00058 }
00059 #endif

Generated on Thu Nov 1 13:12:21 2007 for libstdc++ by  doxygen 1.5.1