Commit 6ab833ad by Jamie Madill Committed by Commit Bot

Add more comparators to Optional.h.

BUG=angleproject:1387 Change-Id: If3fc67f99716b2e5e6a8b0ffd139a07a06cdcab8 Reviewed-on: https://chromium-review.googlesource.com/648050Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 134f93d1
......@@ -56,6 +56,10 @@ struct Optional
bool operator!=(const Optional &other) const { return !(*this == other); }
bool operator==(const T &value) const { return mValid && (mValue == value); }
bool operator!=(const T &value) const { return !(*this == value); }
private:
bool mValid;
T mValue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment