Skip to content
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

static operator() for stateless functors #4358

Merged
merged 15 commits into from
Feb 6, 2024

Commits on Jan 30, 2024

  1. Define macros for static operator()

    Co-authored-by: Casey Carter <cacarter@microsoft.com>
    frederick-vs-ja and CaseyCarter committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    bb6ae1d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8bda039 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. Configuration menu
    Copy the full SHA
    9d10474 View commit details
    Browse the repository at this point in the history
  2. static operator() for niebloids

    Drive-by and fixes: change `(*this)(...)` to `operator()(...)`,
    and use more internal static member functions.
    frederick-vs-ja committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    e2ff7d8 View commit details
    Browse the repository at this point in the history
  3. static operator() for other stateless functors

    Note: `_Synth_three_way::operator()` is specified to be non-static
    in [expos.only.entity], but the class itself is exposition-only, so I
    think it's fine to make it `static`.
    
    Drive-by: `_Cmp_cs::operator()` lacked `const` befor. IMO it should
    have `const` when `static` is unavailable.
    frederick-vs-ja committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    ad5c977 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1ec83e3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9995ab8 View commit details
    Browse the repository at this point in the history
  6. Fix ranges::swap

    frederick-vs-ja committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    80086e2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    166974b View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2024

  1. Configuration menu
    Copy the full SHA
    5a6ae25 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. Configuration menu
    Copy the full SHA
    460cebc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c422a30 View commit details
    Browse the repository at this point in the history
  3. Extract structs instead of lambda variable templates in <execution>.

    Not a copy-paste mistake: `is_nothrow_default_constructible_v<_Ty>` is correct for both `_Inplace_default_construct_fn` and `_Inplace_value_construct_fn`.
    StephanTLavavej committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    986d82f View commit details
    Browse the repository at this point in the history
  4. In _Zip_transform_fn, change _Is_invocation_noexcept/`_Enable_cpo…

    …` to be `consteval` functions.
    StephanTLavavej committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    2661bd8 View commit details
    Browse the repository at this point in the history
  5. Style: Change 4 occurrences of constexpr _STATIC_CALL_OPERATOR => `…

    …_STATIC_CALL_OPERATOR constexpr`
    StephanTLavavej committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    ba6eee5 View commit details
    Browse the repository at this point in the history