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 
00037 // Douglas Gregor <doug.gregor -at- gmail.com>
00038 #ifndef _TR1_REF_FWD
00039 #define _TR1_REF_FWD
00040 
00041 namespace std
00042 {
00043 namespace tr1
00044 {
00045 
00046 template<typename _Tp>
00047   class reference_wrapper;
00048 
00049 template<typename _Tp>
00050   reference_wrapper<_Tp>
00051   ref(_Tp& __t);
00052 
00053   // Denotes a const reference should be taken to a variable.
00054 template<typename _Tp>
00055   reference_wrapper<const _Tp>
00056   cref(const _Tp& __t);
00057 }
00058 }
00059 #endif

Generated on Tue Feb 2 16:56:24 2010 for GNU C++ STL by  doxygen 1.4.7