container.list: Document front/back preconditions

This commit is contained in:
Eugen Wissner 2018-03-09 08:00:28 +01:00
parent 8fa033a49f
commit 82f41844b1

View File

@ -313,6 +313,8 @@ struct SList(T)
/** /**
* Returns: First element. * Returns: First element.
*
* Precondition: $(D_INLINECODE !empty).
*/ */
@property ref inout(T) front() inout @property ref inout(T) front() inout
in in
@ -1247,6 +1249,8 @@ struct DList(T)
/** /**
* Returns: First element. * Returns: First element.
*
* Precondition: $(D_INLINECODE !empty).
*/ */
@property ref inout(T) front() inout @property ref inout(T) front() inout
in in
@ -1260,6 +1264,8 @@ struct DList(T)
/** /**
* Returns: Last element. * Returns: Last element.
*
* Precondition: $(D_INLINECODE !empty).
*/ */
@property ref inout(T) back() inout @property ref inout(T) back() inout
in in