Horizon
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ranges::at_fn Struct Reference

Checked indexed range access. More...

#include <operations.hpp>

Public Member Functions

 template (typename Rng)(AND sized_range< Rng > AND borrowed_range< Rng >) const expr range_reference_t< Rng > operator()(Rng &&rng
 
return ranges::begin (rng)[n]
 

Public Attributes

range_difference_t< Rng > n const
 

Detailed Description

Checked indexed range access.

Member Function Documentation

◆ template()

ranges::at_fn::template ( typename Rng  ) const &&
Returns
begin(rng)[n]

Member Data Documentation

◆ const

range_difference_t<Rng> n ranges::at_fn::const
Initial value:
{
check_throw(rng, n)

The documentation for this struct was generated from the following file: