LRDE Tiger Compiler
1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
pair.hxx
Go to the documentation of this file.
1
6
#ifndef MISC_PAIR_HXX
7
# define MISC_PAIR_HXX
8
9
# include <ostream>
10
# include <
misc/deref.hh
>
11
# include <
misc/pair.hh
>
12
13
namespace
misc
14
{
15
16
template
<
class
Fst,
class
Snd>
17
inline
18
pair<Fst, Snd>::pair
(
const
Fst& fst,
const
Snd& snd)
19
: std::
pair
<Fst, Snd>(fst, snd)
20
{
21
}
22
23
template
<
class
Fst,
typename
Snd>
24
pair<Fst, Snd>
25
make_pair
(Fst fst, Snd snd)
26
{
27
return
pair<Fst, Snd>
(fst, snd);
28
}
29
30
template
<
class
Fst,
typename
Snd>
31
inline
std::ostream&
32
operator<<(std::ostream& o, const pair<Fst, Snd>& p)
33
{
34
return
o << p.first << p.second;
35
}
36
37
}
38
39
#endif // !MISC_PAIR_HXX
misc
pair.hxx
Generated on Wed Mar 5 2014 15:47:36 for LRDE Tiger Compiler by
1.8.1.2