42#if defined(CUDA_BACKEND) && defined(__CUDACC__)
48 if (m_size >= this->m_maxSize)
return nullptr;
52 int index = atomicAdd(&(this->m_size), 1);
55 this->m_startLoc[index] = val;
57 return this->m_startLoc + index;
Be aware do not use this structure on GPU if the data size is large.
DYN_FUNC iterator insert(T val)
DYN_FUNC iterator find(T val)
This is an implementation of AdditiveCCD based on peridyno.