xo-object2: DArray: + DArray.pop_back + no ub on oom
This commit is contained in:
parent
aea622a1c2
commit
7f3c7671b4
2 changed files with 40 additions and 10 deletions
|
|
@ -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 **/
|
||||
///@{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue