Removes and returns (via the 'popped' out parameter) the last element in an array. If the provided array is empty, the function returns false.
Template params: T = type of array element
buffer to pop an element from
popped element (if array contains > 0 elements)
true if an element was popped
auto buffer = createBuffer("something"); char elem; test(pop(buffer, elem)); test!("==")(buffer[], "somethin"[]); test!("==")(elem, 'g');
See Implementation
Removes and returns (via the 'popped' out parameter) the last element in an array. If the provided array is empty, the function returns false.
Template params: T = type of array element