[computer-go] C++: copying arrays

Weston Markham weston.markham at gmail.com
Thu Aug 10 16:19:24 PDT 2006


Yes.  The compiler-provided assignment operator will do the job for you.

Weston

On 8/10/06, Peter Drake <drake at lclark.edu> wrote:
>
> I've got a class HashTable which contains one field:
>
>  uint64_t data[CAPACITY];
>
> If I have declared two such tables a and b, does
>
> a = b;
>
> copy the array, or do I have to overload the assignment operator =?
>
>
> Peter Drake
> Assistant Professor of Computer Science
> Lewis & Clark College
> http://www.lclark.edu/~drake/
>
>
>
>
>
> _______________________________________________
> computer-go mailing list
> computer-go at computer-go.org
> http://www.computer-go.org/mailman/listinfo/computer-go/
>
>


More information about the computer-go mailing list