Method Bson.opIndex

Overload group

Allows accessing fields of a BSON object using [].

Returns a null value if the specified field does not exist.

Prototypes

inout(Bson) opIndex(
  string idx
) inout;

void opIndexAssign(T)(T value, string idx)(
  T value,
  string idx
);

Overload group

Allows index based access of a BSON array value.

Returns a null value if the index is out of bounds.

Prototype

inout(Bson) opIndex(
  ulong idx
) inout;

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

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