Skip to content

P2502R2 <generator>: Synchronous Coroutine Generator For Ranges #2936

Description

WG21-P2502R2 <generator>: Synchronous Coroutine Generator For Ranges
WG21-P2787R1 pmr::generator
LWG-3762 generator::iterator::operator== should pass by reference
LWG-3826 Redundant specification [for overload of yield_value]
LWG-3894 generator::promise_type::yield_value(ranges::elements_of<Rng, Alloc>) should not be noexcept

Feature-test macro:

#define __cpp_lib_generator 202207L

The IDE already knows about this extensionless header.

Todo

According to Casey Carter (@CaseyCarter) in #4342 (comment) and as observed by A. Jiang (@frederick-vs-ja) in #4342 (comment) , the feature/generator branch needs:

  • More thorough testing
  • A quick audit to ensure it meets all the requirements
  • A review of the allocator handling
  • Thought put into what to do when __cpp_lib_byte is unavailable

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cxx23C++23 featurefixedSomething works now, yay!generatorC++23 generator

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions