DynamicArray.takeBack

Pop back element and return it.

This is well-missed feature of C++'s std::vector because of problems with exception handling. For more details see https://stackoverflow.com/questions/12600330/pop-back-return-value.

struct DynamicArray(T, Allocator = Mallocator, Capacity = size_t)
@trusted
T
takeBack
()
()
if (
!is(immutable T == immutable bool) &&
(
is(Capacity == ulong) ||
is(Capacity == uint)
)
&&
isAllocator!Allocator
)

Meta