xo-object2: DArray: + DArray.pop_back + no ub on oom

This commit is contained in:
Roland Conybeare 2026-04-10 20:31:26 -04:00
commit 7f3c7671b4
2 changed files with 40 additions and 10 deletions

View file

@ -111,10 +111,16 @@ namespace xo {
bool assign_at(size_type index, obj<AGCObject> elt) noexcept;
/** append @p elt at the end of array.
* true on success, false otherwise
* true on success, false otherwise.
* on failure array is unaltered
**/
bool push_back(obj<AGCObject> elt) noexcept;
/** store last element in array into @p elt and decrement array size.
* true on success; false on failure (implies array was empty)
**/
bool pop_back(obj<AGCObject> * p_elt = nullptr) noexcept;
///@}
/** @defgroup darray-general general methods **/
///@{