X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32193feb839f5597211caad34e0e289f6273d9a5..9b33fe0222417a1599876ef82c969c322a8a0556:/include/wx/dynarray.h diff --git a/include/wx/dynarray.h b/include/wx/dynarray.h index fc49a0f260..109a89437c 100644 --- a/include/wx/dynarray.h +++ b/include/wx/dynarray.h @@ -448,6 +448,16 @@ WX_DEFINE_EXPORTED_ARRAY(void *, wxArrayPtrVoid); // convinience macros // ----------------------------------------------------------------------------- +// append all element of one array to another one +#define WX_APPEND_ARRAY(array, other) \ + { \ + size_t count = other.Count(); \ + for ( size_t n = 0; n < count; n++ ) \ + { \ + array.Add(other[n]); \ + } \ + } + // delete all array elements // // NB: the class declaration of the array elements must be visible from the