1234287Sdim 2234287Sdim 3234287Sdim// class template reference_wrapper forwarding header -*- C++ -*- 4234287Sdim 5234287Sdim// Copyright (C) 2004, 2005 Free Software Foundation, Inc. 6234287Sdim// 7234287Sdim// This file is part of the GNU ISO C++ Library. This library is free 8234287Sdim// software; you can redistribute it and/or modify it under the 9234287Sdim// terms of the GNU General Public License as published by the 10234287Sdim// Free Software Foundation; either version 2, or (at your option) 11234287Sdim// any later version. 12234287Sdim 13234287Sdim// This library is distributed in the hope that it will be useful, 14234287Sdim// but WITHOUT ANY WARRANTY; without even the implied warranty of 15234287Sdim// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16234287Sdim// GNU General Public License for more details. 17234287Sdim 18234287Sdim// You should have received a copy of the GNU General Public License along 19234287Sdim// with this library; see the file COPYING. If not, write to the Free 20234287Sdim// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 21234287Sdim// USA. 22234287Sdim 23234287Sdim// As a special exception, you may use this file as part of a free software 24234287Sdim// library without restriction. Specifically, if other files instantiate 25234287Sdim// templates or use macros or inline functions from this file, or you compile 26234287Sdim// this file and link it with other files to produce an executable, this 27234287Sdim// file does not by itself cause the resulting executable to be covered by 28234287Sdim// the GNU General Public License. This exception does not however 29245431Sdim// invalidate any other reasons why the executable file might be covered by 30234287Sdim// the GNU General Public License. 31234287Sdim 32234287Sdim/** @file ref_fwd.h 33234287Sdim * This is an internal header file, included by other library headers. 34234287Sdim * You should not attempt to use it directly. 35234287Sdim */ 36234287Sdim 37234287Sdim// Douglas Gregor <doug.gregor -at- gmail.com> 38234287Sdim#ifndef _TR1_REF_FWD 39234287Sdim#define _TR1_REF_FWD 40234287Sdim 41234287Sdimnamespace std 42252723Sdim{ 43234287Sdimnamespace tr1 44234287Sdim{ 45234287Sdim 46234287Sdimtemplate<typename _Tp> 47234287Sdim class reference_wrapper; 48234287Sdim 49234287Sdimtemplate<typename _Tp> 50234287Sdim reference_wrapper<_Tp> 51234287Sdim ref(_Tp& __t); 52234287Sdim 53234287Sdim // Denotes a const reference should be taken to a variable. 54234287Sdimtemplate<typename _Tp> 55234287Sdim reference_wrapper<const _Tp> 56234287Sdim cref(const _Tp& __t); 57234287Sdim} 58234287Sdim} 59234287Sdim#endif 60234287Sdim