ref_fwd.h revision 169691
1262395Sbapt
2262395Sbapt
3262395Sbapt// class template reference_wrapper forwarding header -*- C++ -*-
4262395Sbapt
5262395Sbapt// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
6262395Sbapt//
7262395Sbapt// This file is part of the GNU ISO C++ Library.  This library is free
8262395Sbapt// software; you can redistribute it and/or modify it under the
9262395Sbapt// terms of the GNU General Public License as published by the
10262395Sbapt// Free Software Foundation; either version 2, or (at your option)
11262395Sbapt// any later version.
12262395Sbapt
13262395Sbapt// This library is distributed in the hope that it will be useful,
14262395Sbapt// but WITHOUT ANY WARRANTY; without even the implied warranty of
15262395Sbapt// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16262395Sbapt// GNU General Public License for more details.
17262395Sbapt
18262395Sbapt// You should have received a copy of the GNU General Public License along
19262395Sbapt// with this library; see the file COPYING.  If not, write to the Free
20262395Sbapt// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21262395Sbapt// USA.
22262395Sbapt
23262395Sbapt// As a special exception, you may use this file as part of a free software
24262395Sbapt// library without restriction.  Specifically, if other files instantiate
25262395Sbapt// templates or use macros or inline functions from this file, or you compile
26262395Sbapt// this file and link it with other files to produce an executable, this
27262395Sbapt// file does not by itself cause the resulting executable to be covered by
28262395Sbapt// the GNU General Public License.  This exception does not however
29262395Sbapt// invalidate any other reasons why the executable file might be covered by
30262395Sbapt// the GNU General Public License.
31262395Sbapt
32262395Sbapt/** @file tr1/ref_fwd.h
33262395Sbapt *  This is an internal header file, included by other library headers.
34262395Sbapt *  You should not attempt to use it directly.
35262395Sbapt */
36262395Sbapt
37262395Sbapt// Douglas Gregor <doug.gregor -at- gmail.com>
38262395Sbapt#ifndef _TR1_REF_FWD
39262395Sbapt#define _TR1_REF_FWD
40262395Sbapt
41262395Sbaptnamespace std
42262395Sbapt{
43262395Sbapt_GLIBCXX_BEGIN_NAMESPACE(tr1)
44262395Sbapt
45262395Sbapttemplate<typename _Tp>
46262395Sbapt  class reference_wrapper;
47262395Sbapt
48262395Sbapttemplate<typename _Tp>
49262395Sbapt  reference_wrapper<_Tp>
50262395Sbapt  ref(_Tp& __t);
51262395Sbapt
52262395Sbapt  // Denotes a const reference should be taken to a variable.
53262395Sbapttemplate<typename _Tp>
54262395Sbapt  reference_wrapper<const _Tp>
55262395Sbapt  cref(const _Tp& __t);
56262395Sbapt
57262395Sbapt_GLIBCXX_END_NAMESPACE
58262395Sbapt}
59262395Sbapt#endif
60262395Sbapt