This website requires JavaScript.
Explore
Help
Sign In
mirror
/
RosettaCodeData
mirror of
https://github.com/acmeism/RosettaCodeData.git
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
main
RosettaCodeData
/
Task
/
Generic-swap
/
C++
/
generic-swap-1.cpp
7 lines
100 B
C++
Raw
Permalink
Blame
History
template
<
typename
T
>
void
swap
(
T
&
left
,
T
&
right
)
{
T
tmp
(
left
)
;
left
=
right
;
right
=
tmp
;
}
Reference in New Issue
View Git Blame
Copy Permalink