cptr::basic_ptr::operator+=

Advance by n elements.

Synopsis

Declared in <cptr/ptr.hpp>

constexpr
basic_ptr&
operator+=(std::ptrdiff_t n) noexcept
requires (!std::is_void_v<T>);

Return Value

Reference to the current object

Parameters

NameDescription
nThe right operand