std::move_sentinel
| Defined in header <iterator>
|
||
| template< std::semiregular S > class move_sentinel; |
(since C++20) | |
std::move_sentinel is a sentinel adaptor used for denoting ranges together with std::move_iterator.
Contents |
[edit] Template parameters
| S | - | the type of underlying sentinel |
[edit] Member functions
| (C++20) |
constructs a new move_sentinel (public member function) |
| (C++20) |
assigns the contents of one move_sentinel to another (public member function) |
| (C++20) |
return a copy of the underlying sentinel (public member function) |
[edit] Member objects
| Member name | Definition |
last (private member object)
|
underlying sentinel, the name is for exposition only |
[edit] Non-member functions
Notes: These functions are hidden friends of std::move_iterator and invisible to ordinary unqualified or qualified lookup.
| compares the underlying iterator and the underlying sentinel (function template) | |
| computes the distance between the underlying iterator and the underlying sentinel (function template) |
[edit] Example
| This section is incomplete Reason: no example |
[edit] See also
| (C++11) |
iterator adaptor which dereferences to an rvalue reference (class template) |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
