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
select-const.hh
Go to the documentation of this file.
1
6
#ifndef MISC_SELECT_CONST_HH
7
# define MISC_SELECT_CONST_HH
8
9
namespace
misc
10
{
11
12
/*------------------.
13
| const selectors. |
14
`------------------*/
15
17
template
<
typename
T>
18
struct
constify_traits
19
{
20
typedef
const
T
type
;
21
};
22
24
template
<
typename
T>
25
struct
id_traits
26
{
27
typedef
T
type
;
28
};
29
30
31
32
/*------------------.
33
| select_iterator. |
34
`------------------*/
35
37
template
<
typename
T>
38
struct
select_iterator
39
{
40
typedef
typename
T::iterator
type
;
41
};
42
44
template
<
typename
T>
45
struct
select_iterator
<const T>
46
{
47
typedef
typename
T::const_iterator
type
;
48
};
49
50
}
//namespace misc
51
52
#endif // !MISC_SELECT_CONST_HH
misc
select-const.hh
Generated on Wed Mar 5 2014 15:47:36 for LRDE Tiger Compiler by
1.8.1.2