diff options
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r-- | src/mongo/db/client.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h index ed3f31f868e..7e24368412d 100644 --- a/src/mongo/db/client.h +++ b/src/mongo/db/client.h @@ -247,6 +247,14 @@ public: ThreadClient(const ThreadClient&) = delete; ThreadClient(ThreadClient&&) = delete; void operator=(const ThreadClient&) = delete; + + Client* get() const; + Client* operator->() const { + return get(); + } + Client& operator*() const { + return *get(); + } }; /** |