[range.utility.conv.adaptors] (original) (raw)

25 Ranges library [ranges]

25.5 Range utilities [range.utility]

25.5.7 Range conversions [range.utility.conv]

25.5.7.3 ranges​::​to adaptors [range.utility.conv.adaptors]

template<class C, class... Args> requires (![view](range.view#concept:view "25.4.4 Views [range.view]")<C>) constexpr auto to(Args&&... args);template<template<class...> class C, class... Args> constexpr auto to(Args&&... args);

Mandates: For the first overload,C is a cv-unqualified class type.

Returns: A range adaptor closure object ([range.adaptor.object]) fthat is a perfect forwarding call wrapper ([func.require]) with the following properties: