DList.back

struct DList(T)
@property ref inout
inout(T)
back
()

Return Value

Type: inout(T)

Last element.

Precondition: !empty.

Examples

auto l = DList!int([25]);
assert(l.front == 25);
assert(l.back == 25);

l.insertFront(30);
assert(l.front == 30);
assert(l.back == 25);

Meta