Skip to content

GB301 24.07.4.2 Add filter_view::pred() accessor P1983 #297

@wg21bot

Description

@wg21bot

filter_view has no pred() member
Other views taking predicates (take_while_view and drop_while_view) have a pred() member returning (a const reference to) the contained predicate object, but filter_view does not

Proposed change:
In [range.filter.view], add

constexpr const Pred& pred() const;

Effects: Equivalent to: return *pred_;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions