]> www.ginac.de Git - cln.git/blob - src/vector/cl_GV_I_copy.cc
cl_{GV,SV}: use std::size_t for size of vectors (instead of obscure uintC).
[cln.git] / src / vector / cl_GV_I_copy.cc
1 // copy().
2
3 // General includes.
4 #include "base/cl_sysdep.h"
5
6 // Specification.
7 #define CL_GV_NO_RANGECHECKS
8 #include "cln/GV_integer.h"
9
10
11 // Implementation.
12
13 namespace cln {
14
15 const cl_GV_I copy (const cl_GV_I& v)
16 {
17         std::size_t len = v.size();
18         cl_GV_I w = cl_GV_I(len, v.maxbits());
19         cl_GV_I::copy_elements(v, 0, w, 0, len);
20         return w;
21 }
22
23 }  // namespace cln