Anything related to dynamic arrays, i.e. array-like data structures where the length of the array (the number of its elements) can be changed at runtime, thus allowing adding or removing elements without explicit memory allocation and management.
I often need to create a 2D array with width and height (let them be n and m) unknown at …
c++ arrays multidimensional-array dynamic-arraysin this example procedure foobar; var tab:array of integer; begin setlength(tab,10); end; is the array destroyed or the …
delphi memory-leaks reference-counting dynamic-arraysI have a choice. I have a number of already ordered strings that I need to store and access. It …
delphi data-structures linked-list tstringlist dynamic-arraysI am trying to create a 2d array in Go: board := make([][]string, m) for i := range board { board[i] = …
arrays multidimensional-array go dynamic-arraysIs it possible to have an array with size that is determined at runtime like so, Procedure prog is type …
ada dynamic-arraysIn Python: def select(x): y = [] for e in x: if e!=0: y.append(e) return y that works as: …
python arrays fortran dynamic-arraysDraft C++14 includes both runtime-sized arrays and the std::dynarray container. From what I can tell, the only real difference …
c++ c++14 dynamic-arrays dynarrayMy code: int args_size = 5; char** args; args = (char**) malloc(sizeof(char*) * args_size); // ... args = (char**) realloc(args, sizeof(char*) * (…
c size realloc dynamic-arraysI need to perform a lot of work using 2D numpy arrays of various sizes and I would like to …
c numpy cython dynamic-arrays memoryviewI want to delete a dynamically-allocated array by looping through all the elements and calling delete on each of them. (…
c++ pointers memory-management dynamic-arrays