David Aurelio
9378a7a439
User-defined literals for YGValue
...
Summary:
@public
Adds `_pt` and `_percent` user defined literals to create `YGValue` instances.
This allows to create `YGValue`s in the following form:
```
use namespace facebook::yoga::literals;
auto a = 123_pt; // == YGValue{123.0f, YGUnitPoint}
auto b = -12.5_percent; // == YGValue{-12.5f, YGUnitPercent}
```
Reviewed By: SidharthGuglani
Differential Revision: D13942100
fbshipit-source-id: ce1e2f9431c3e2a99c6e11896a712539cc535e0d
2019-02-04 10:25:18 -08:00
..
2019-01-16 12:28:51 -08:00
2019-02-01 03:34:11 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-12-12 16:18:56 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-12-13 07:16:54 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2018-11-29 11:37:52 -08:00
2019-02-04 10:25:18 -08:00
2018-11-29 11:37:52 -08:00