repo.or.cz
/
scx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
~
[scx.git]
/
misc
/
tmpref.cpp
blob
346c2fcbe220e574dda7636c2efa85e0a5061903
1
#include <iostream>
2
using namespace
std
;
3
4
template
<
typename arg_t
>
5
void
fn
(
arg_t arg
)
6
{
7
cout
<< &
arg
<<
endl
;
8
}
9
10
int
main
()
11
{
12
int
a
;
13
cout
<< &
a
<<
endl
;
14
fn
<
int
>(
a
);
15
fn
<
int
&>(
a
);
16
return
0
;
17
}