| 863 | } |
| 864 | |
| 865 | inline void allocate(const int size) { |
| 866 | if (this->vals == nullptr) { |
| 867 | this->size = size; |
| 868 | this->vals = (size_t*) malloc(sizeof(size_t) * size); |
| 869 | } |
| 870 | return; |
| 871 | } |
| 872 | |
| 873 | ~HostDnVecLongInt() { |
| 874 | if (this->vals != nullptr) { |