Unverified Commit 7d9b5aa6 authored by Hristo Hristov's avatar Hristo Hristov Committed by GitHub
Browse files

[libc++][format] P2637R3: Member `visit` (`std::basic_format_arg`) (#76449)

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

Implements:
`basic_format_arg.visit()`
`basic_format_arg.visit<R>()`
Deprecates:
`std::visit_format_arg()`

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

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



---------

Co-authored-by: default avatarZingam <zingam@outlook.com>
parent 38b5f2ed
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