diff options
Diffstat (limited to 'lout/misc.hh')
-rw-r--r-- | lout/misc.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lout/misc.hh b/lout/misc.hh index fe5cdcd5..437d229e 100644 --- a/lout/misc.hh +++ b/lout/misc.hh @@ -149,6 +149,14 @@ public: inline T* getArray() { return array; } + inline T* detachArray() { + T* arr = array; + array = NULL; + numAlloc = 0; + num = 0; + return arr; + } + /** * \brief Increase the vector size by one. * |