Struct assign_fn
Defined in File assign.hpp
Struct Documentation
-
struct assign_fn
Implementation detail for an assign range adaptor object.
Public Functions
Friends
- template<class Fn, std::enable_if_t< is_range_closure_v< Fn >, int > = 0> inline friend constexpr friend auto operator| (Fn fn, assign_fn)
Hidden friend operator overload that enables action / view composition.
Enables the following expressions: 1) view_closure | assign 2) action_closure | view_closure | assign 3) action_closure | assign
1) Will create an action closure that can eagerly invoke
view_closure
and assign the resulting range to the input range. 2) Will create a new action closure that can invokeaction_closure
, eagerly invokeview_closure
, and assign the resulting range to the input range. 3) Technically a no-op, it will just invoke theaction_closure
.