GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::ranges::drop_view::end(3) C++ Standard Libary std::ranges::drop_view::end(3)

std::ranges::drop_view::end - std::ranges::drop_view::end


constexpr auto end() requires (!__SimpleView<V>); (1) (since C++20)
constexpr auto end() const requires ranges::range<const V>; (2) (since C++20)


Returns a sentinel or an iterator representing the end of the drop_view.


Effectively returns ranges::end(base_), where base_ is the underlying view.


(none)


a sentinel or an iterator representing the end of the view

// Run this code


#include <algorithm>
#include <iostream>
#include <iterator>
#include <ranges>


int main()
{
constexpr char url[]{ "https://cppreference.com" };


const auto p = std::distance(std::ranges::begin(url), std::ranges::find(url, '/'));
auto site = std::ranges::drop_view{ url, p + 2 }; // drop the prefix "https://"


for (auto it = site.begin(); it != site.end(); ++it) {
std::cout << *it; // ^^^
}
std::cout << '\n';
}


cppreference.com


begin returns an iterator to the beginning
(C++20) (public member function)
ranges::begin returns an iterator to the beginning of a range
(C++20) (customization point object)
ranges::end returns a sentinel indicating the end of a range
(C++20) (customization point object)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.