Move equaltiy function from utils to an operator on YGFloatOptional

Summary: Move equaltiy function from utils to an operator on YGFloatOptional

Reviewed By: emilsjolander

Differential Revision: D7303460

fbshipit-source-id: 41ec0076ace621ec1a5bdbab00b72eea57780fff
This commit is contained in:
Pritesh Nandgaonkar
2018-04-03 14:56:31 -07:00
committed by Facebook Github Bot
parent d85e2ee9c3
commit 5730be093e
5 changed files with 33 additions and 16 deletions

View File

@@ -23,4 +23,10 @@ struct YGFloatOptional {
void setValue(const float& val);
bool isUndefined() const;
bool operator==(const YGFloatOptional& op) const;
bool operator!=(const YGFloatOptional& op) const;
bool operator==(const float& val) const;
bool operator!=(const float& val) const;
};