X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32193feb839f5597211caad34e0e289f6273d9a5..c0fba4d1bed63c7b09b76c2d25fc4e76974d51ce:/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