Returns a Range adaptor wrapping the given view.

Synopsis

Declared in <absl/types/any_span.h>

template<typename View>
Range<decltype(view.begin())>
MakeAdaptorFromView(View& view);

Description

The view's begin() and end() must return valid random access iterators. The return value must outlive any spans that use it.

Return Value

A Range over the view's elements.

Parameters

Name

Description

view

The view to adapt.

Created with MrDocs