Skip to content

Commit e8e44d7

Browse files
committed
Merge remote-tracking branch 'origin/v10-minor'
2 parents 89fb668 + d7a873d commit e8e44d7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/xternal.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7978,6 +7978,17 @@
79787978
* - SCIPallocMemory(), SCIPallocMemoryArray() to allocate memory,
79797979
* - SCIPfreeMemory(), SCIPfreeMemoryArray() to free memory.
79807980
*
7981+
* @section REALLOCATION Reallocating memory
7982+
*
7983+
* - `SCIPensureBlockMemoryArray()`: Extends a dynamically allocated block memory array to be able to store at least the given
7984+
* number of elements. This method ensures that the array is resized efficiently by calculating an appropriate new size. This can be
7985+
* useful to build data structures that grow dynamically.
7986+
*
7987+
* - `SCIPreallocBlockMemoryArray()`, `SCIPreallocBufferArray()`, `SCIPreallocMemoryArray()`: Reallocate memory arrays to a specific
7988+
* new size. These are useful when you already know the exact new size needed, for instance when managing multiple arrays of the
7989+
* same size or when you want to compute the new size once and apply it to multiple arrays. Unlike the ensure* functions, these
7990+
* give you direct control over the array size.
7991+
*
79817992
* @n
79827993
* @section MEMBESTPRACTICE Best Practice of Using Memory Functions
79837994
*

0 commit comments

Comments
 (0)