This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<class II, class OI> inline OI std_copy(II in, II end, OI out) { | |
for (; in != end; ++in, ++out) *out = *in; | |
return out; | |
} | |
int main() { | |
int a [] = {1, 2, 3}; | |
int b [] = {4, 5, 6}; | |
std_copy(a, a + 3, b); | |
} |
0 件のコメント:
コメントを投稿