vibe.d beta banner
get vibe.d
0.7.30

Function MongoCursor.opApply

Iterates over all remaining documents.

Note that iteration is one-way - elements that have already been visited will not be visited again if another iteration is done.

Prototypes

int opApply(
  int delegate(ref R doc) del
);

int opApply(
  int delegate(ref size_t idx, ref R doc) del
);

Throws

An exception if there is a query or communication error.

Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.