diff options
author | Bernie Innocenti <codewiz@google.com> | 2020-02-06 02:41:13 +0900 |
---|---|---|
committer | Bernie Innocenti <codewiz@google.com> | 2020-02-06 15:27:26 +0900 |
commit | 4adfde41eae5b31724ec6092c1405b2913ab535c (patch) | |
tree | 5e46eb9e11ee0bbf90a0d54e2b81de3c6647488e /init/service_utils.cpp | |
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
Diffstat (limited to 'init/service_utils.cpp')
0 files changed, 0 insertions, 0 deletions