commit | 4adfde41eae5b31724ec6092c1405b2913ab535c | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Thu Feb 06 02:41:13 2020 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Thu Feb 06 15:27:26 2020 +0900 |
tree | 5e46eb9e11ee0bbf90a0d54e2b81de3c6647488e | |
parent | 07e74d65a2b58250ede64690044d3132d2063126 [diff] |
Add android::base::expected::ok() This is an alias for has_value() which is meant to be more concise, yet more explicit than the conversions to bool. Leave operator bool() in place for now: due to the large number of users, removal of operator bool() needs to be broken up into incremental stages. Test: cd system/core && atest Test: m Change-Id: Ib1eb00f47d3c0f2229bb176b62687463b834f280