1169691Skan 2169691Skan 3169691Skan// class template reference_wrapper forwarding header -*- C++ -*- 4169691Skan 5169691Skan// Copyright (C) 2004, 2005 Free Software Foundation, Inc. 6169691Skan// 7169691Skan// This file is part of the GNU ISO C++ Library. This library is free 8169691Skan// software; you can redistribute it and/or modify it under the 9169691Skan// terms of the GNU General Public License as published by the 10169691Skan// Free Software Foundation; either version 2, or (at your option) 11169691Skan// any later version. 12169691Skan 13169691Skan// This library is distributed in the hope that it will be useful, 14169691Skan// but WITHOUT ANY WARRANTY; without even the implied warranty of 15169691Skan// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16169691Skan// GNU General Public License for more details. 17169691Skan 18169691Skan// You should have received a copy of the GNU General Public License along 19169691Skan// with this library; see the file COPYING. If not, write to the Free 20169691Skan// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 21169691Skan// USA. 22169691Skan 23169691Skan// As a special exception, you may use this file as part of a free software 24169691Skan// library without restriction. Specifically, if other files instantiate 25169691Skan// templates or use macros or inline functions from this file, or you compile 26169691Skan// this file and link it with other files to produce an executable, this 27169691Skan// file does not by itself cause the resulting executable to be covered by 28169691Skan// the GNU General Public License. This exception does not however 29169691Skan// invalidate any other reasons why the executable file might be covered by 30169691Skan// the GNU General Public License. 31169691Skan 32169691Skan/** @file tr1/ref_fwd.h 33169691Skan * This is an internal header file, included by other library headers. 34169691Skan * You should not attempt to use it directly. 35169691Skan */ 36169691Skan 37169691Skan// Douglas Gregor <doug.gregor -at- gmail.com> 38169691Skan#ifndef _TR1_REF_FWD 39169691Skan#define _TR1_REF_FWD 40169691Skan 41169691Skannamespace std 42169691Skan{ 43169691Skan_GLIBCXX_BEGIN_NAMESPACE(tr1) 44169691Skan 45169691Skantemplate<typename _Tp> 46169691Skan class reference_wrapper; 47169691Skan 48169691Skantemplate<typename _Tp> 49169691Skan reference_wrapper<_Tp> 50169691Skan ref(_Tp& __t); 51169691Skan 52169691Skan // Denotes a const reference should be taken to a variable. 53169691Skantemplate<typename _Tp> 54169691Skan reference_wrapper<const _Tp> 55169691Skan cref(const _Tp& __t); 56169691Skan 57169691Skan_GLIBCXX_END_NAMESPACE 58169691Skan} 59169691Skan#endif 60