mirror of
https://github.com/libretro/x86-assembly-cheat.git
synced 2026-11-08 17:30:30 -10:00
14 lines
131 B
C++
14 lines
131 B
C++
/*
|
|
# template
|
|
*/
|
|
|
|
#include <cassert>
|
|
|
|
template <class C>
|
|
C f(C i) { return i; }
|
|
|
|
int main() {
|
|
f<int>(1);
|
|
f<double>(1.5);
|
|
}
|