Addition operator
Declared in <cptr/ptr.hpp>
constexpr
basic_ptr
operator+(
std::ptrdiff_t n,
basic_ptr p) noexcept
requires (!std::is_void_v<T>);
This function is a hidden friend of basic_ptr, declared only inside that class: it can be found only through argument-dependent lookup.
A nullable pointer to a T inside Cage, stored in 4 bytes. Use it as ptr<T> or strict_ptr<T>, declared below.
| Name | Description |
|---|---|
| n | The left operand |
| p | The right operand |