Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@StephanTLavavej

Description

@StephanTLavavej

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 @CaseyCarter in #4342 (comment) and as observed by @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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions