Passing class with pointer to array from C++ to CUDA
===

I have the following class in C++:

    template<typename T>
    class dynArray {

     public:
        T *elements;
        int size;
        int capacity;
      	int initCapacity;
    }

Is there any way to copy an object of this class to use in a CUDA kernel using `cudaMemcpy()` without having to copy its content element by element?

Thanks in advance.
