[all-commits] [llvm/llvm-project] 3412bc: [libc++][variant] P2637R3: Member `visit` (`std::v...

Hristo Hristov via All-commits all-commits at lists.llvm.org
Sat Jan 20 21:17:03 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3412bc765887d2b2244e4338adc2f49420cce9c8
      https://github.com/llvm/llvm-project/commit/3412bc765887d2b2244e4338adc2f49420cce9c8
  Author: Hristo Hristov <hristo.goshev.hristov at gmail.com>
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
    M libcxx/docs/Status/Cxx2cPapers.csv
    M libcxx/include/__config
    M libcxx/include/variant
    A libcxx/test/std/utilities/variant/variant.visit.member/robust_against_adl.pass.cpp
    A libcxx/test/std/utilities/variant/variant.visit.member/visit.pass.cpp
    A libcxx/test/std/utilities/variant/variant.visit.member/visit_return_type.pass.cpp
    M libcxx/utils/generate_feature_test_macro_components.py

  Log Message:
  -----------
  [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: Zingam <zingam at outlook.com>




More information about the All-commits mailing list