Commit Graph

9 Commits

Author SHA1 Message Date
jackhong12 4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
François Carouge 772c80a038 AP_Common: class template parameters not compliant in constructor declaration 2022-06-28 11:05:53 +10:00
Pierre Kancir cceaa1e2fc AP_Common: use correct #pragma GCC diagnostic pop 2021-09-29 17:27:29 +10:00
Andrew Tridgell 7138811a57 AP_Common: fixed cast warnings for ExpandingArray 2020-07-07 10:23:00 +10:00
Randy Mackay df6c666740 AP_Common: add AP_ExpandingGeneric to reduce code size 2019-06-20 15:09:23 +09:00
Randy Mackay 4ef3005d2c AP_Common: add AP_ExpandingArray delete 2019-06-20 15:09:23 +09:00
Randy Mackay 2cb89d9a02 AP_Common: expanding array uses realloc
also make chunk_size const and recommend factor of 2
also reduce top level array's initial size to 32 elements
2019-06-20 15:09:23 +09:00
Randy Mackay 073ce8c3db AP_ExpandingArray: add class description and remove default constructor
also made the following changes:
replaced delete with free
renamed chunk_ptr typedef to chunk_ptr_t
2019-06-20 15:09:23 +09:00
Randy Mackay 528e7c60b0 AP_Common: add AP_ExpandingArray class 2019-06-20 15:09:23 +09:00