The number of elements between two pointers into the same array.
Declared in <cptr/ptr.hpp>
constexpr
std::ptrdiff_t
operator-(
basic_ptr a,
basic_ptr b) 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.
| Name | Description |
|---|---|
| a | The left operand |
| b | The right operand |