Unverified Commit 3412bc76 authored by Hristo Hristov's avatar Hristo Hristov Committed by GitHub
Browse files

[libc++][variant] P2637R3: Member `visit` (`std::variant`) (#76447)

Implements parts of: `P2637R3` https://wg21.link/P2637R3
(https://eel.is/c++draft/variant.visit)

Implements:
`variant.visit()`
`variant.visit<R>()`

The tests are as close as possible to the non-member function.

To land after: https://github.com/llvm/llvm-project/pull/76268



---------

Co-authored-by: default avatarZingam <zingam@outlook.com>
parent 6bb5c989
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment