An updated transform_view whose iterator constructs an F on the fly ‐‐ rather than using the one stored in the view ‐‐ when F can be trivially constructed and destructed. This makes this transform_view conditionally borrowable. Note that this template derives from <Stdref ref="view.interface"/>, and so has many operations not explicitly documented below.

Synopsis

Declared in <beman/transform_view/transform_view.hpp>

class transform_view
    : public std::ranges::view_interface<transform_view<V, F>>

Base Classes

Name

Description

std::ranges::view_interface<transform_view<V, F>>

Member Functions

Name

Description

transform_view [constructor]

Constructors

base

base overloads

begin

begin overloads

end

end overloads

size

Returns the number of elements in *this.