这是indexloc提供的服务,不要输入任何密码
Skip to content

[functional] Add MatchVariant utility and standard headers to overload.h #1899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hocheung-chromium
Copy link

@hocheung-chromium hocheung-chromium commented Jun 11, 2025

  1. Added #include <utility> and #include <variant> to ensure required standard library types are available for all compilers and usage contexts.

  2. Introduced the absl::MatchVariant template function to simplify the invocation of std::visit with multiple callables using
    absl::Overload.

Bug:#1898

1. Added `#include <utility>` and `#include
<variant>` to ensure required standard library
types are available for all compilers and usage
contexts.

2. Introduced the `absl::MatchVariant` template
function to simplify the invocation of
`std::visit` with multiple callables using
`absl::Overload`.

Bug:abseil#1898
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant