Skip to content

Rename __range_adaptor_closure_t #67611

Closed
@ldionne

Description

@ldionne

We discussed with @var-const today and noticed that __range_adaptor_closure_t was an incredibly bad name for this helper.

Spitballing an alternative:

template <class _Fn>
auto __make_range_adaptor_closure(_Fn&& __f) {
    struct __tmp : _Fn, __range_adaptor_closure<__tmp> {
        _LIBCPP_HIDE_FROM_ABI constexpr explicit __tmp(_Fn&& __f) : _Fn(std::move(__f)) { }
    };
    return __tmp{__f};
}

Filing an issue so we can go back to this (probably when we implement std::range_adaptor_closure).

Metadata

Metadata

Assignees

Labels

libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions