Enum member isSaveableCursor

Checks whether its argument is a saveable cursor.

A saveable cursor is a cursor enhanced with a save method analogous to the save method of ForwardRanges.

Declaration

enum isSaveableCursor(CursorType) = isCursor!CursorType && is(typeof((inout int = 0) { CursorType cursor1; CursorType cursor2 = cursor1.save(); } ));

Parameters

NameDescription
CursorType the type to be tested

Returns

true if CursorType is a cursor (as specified by isCursor) and also supports the save method as specified here; false otherwise

Specification

The type shall support at least:

  • all methods and aliases specified by isCursor
  • CursorType save(): returns an independent copy of the current cursor; the copy must start at the position the original cursor was when this method was called; the two copies shall be independent, in that advancing one does not advance the other.

Authors

Lodovico Giaretta

Copyright

Copyright Lodovico Giaretta 2016 --

License

Boost License 1.0.