commit | d390c642acfb18b81731c5c0a61a10eccbedc552 | [log] [tgz] |
---|---|---|
author | Herb Derby <herb@google.com> | Wed Jul 07 17:43:57 2021 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Jul 07 23:08:17 2021 +0000 |
tree | b8891580d51d49cbaa908353c8c86f62a52b30f7 | |
parent | 6ca0536bd56b13ddb9379c8d6b87f1353b22a768 [diff] |
add value_or to optional Add full compliment of operator*, have them assert in debug, but not throw in release as per c++ spec. Add full compliment of value() have them crash if there is no value as per the c++ spec. Add value_or. Add test for value_or. Change-Id: Ib0d9a01fba367768e66d00fbc61b471397e8582c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425476 Commit-Queue: Herb Derby <herb@google.com> Reviewed-by: John Stiles <johnstiles@google.com>