MongoDB C++ Driver
legacy-1.1.2
|
A precomputation of a BSON index or sort key pattern. More...
#include <ordering.h>
Public Member Functions | |
int | get (int i) const |
so, for key pattern { a : 1, b : -1 } get(0) == 1 get(1) == -1 | |
A precomputation of a BSON index or sort key pattern.
That is something like: { a : 1, b : -1 } The constructor is private to make conversion more explicit so we notice where we call make(). Over time we should push this up higher and higher.