Files
2025-10-25 03:02:53 +03:00

2.0 KiB
Raw Permalink Blame History

[move.sent.ops]

24 Iterators library [iterators]

24.5 Iterator adaptors [predef.iterators]

24.5.4 Move iterators and sentinels [move.iterators]

24.5.4.11 Operations [move.sent.ops]

🔗

constexpr move_sentinel();

1

#

Effects: Value-initializes last.

If is_trivially_default_constructible_v is true, then this constructor is a constexpr constructor.

🔗

constexpr explicit move_sentinel(S s);

2

#

Effects: Initializes last with std::move(s).

🔗

template<class S2> requires [convertible_to](concept.convertible#concept:convertible_to "18.4.4Concept convertible_­to[concept.convertible]")<const S2&, S> constexpr move_sentinel(const move_sentinel<S2>& s);

3

#

Effects: Initializes last with s.last.

🔗

template<class S2> requires [assignable_from](concept.assignable#concept:assignable_from "18.4.8Concept assignable_­from[concept.assignable]")<S&, const S2&> constexpr move_sentinel& operator=(const move_sentinel<S2>& s);

4

#

Effects: Equivalent to: last = s.last; return *this;

🔗

constexpr S base() const;

5

#

Returns: last.