commit | be7bae6233fa9c0e77a11021861db40cc3c4eb78 | [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 | 00e401f1bd42d6d7a86089cdb1e6c7a20546e7ce [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