
Arithmetic operators - cppreference.com
These pointer arithmetic operators allow pointers to satisfy the LegacyRandomAccessIterator requirements. For addition and subtraction, if P or Q have type “pointer to (possibly cv-qualified) T ”, …
Arithmetic operators - cppreference.com
The behavior is defined only if the result fits in ptrdiff_t. For the purpose of pointer arithmetic, a pointer to an object that is not an element of any array is treated as a pointer to the first element of an array of …
Standard library header <type_traits> (C++11) - cppreference.com
Composite type categories is_fundamental (C++11) checks if a type is a fundamental type (class template) [edit] is_arithmetic (C++11) checks if a type is an ...
Pointer declaration - cppreference.com
A pointer whose value is null does not point to an object or a function (the behavior of dereferencing a null pointer is undefined), and compares equal to all pointers of the same type whose value is also null.
Implicit conversions - cppreference.com
If the array is a prvalue, temporary materialization occurs.(since C++17) The resulting pointer refers to the first element of the array (see Array-to-pointer decay for details). Function-to-pointer conversion …
Metaprogramming library (since C++11) - cppreference.com
C++ provides metaprogramming facilities, such as type traits, compile-time rational arithmetic, and compile-time integer sequences.
Array declaration - cppreference.com
Pointers to arrays of unknown bound cannot participate in pointer arithmetic and cannot be used on the left of the subscript operator, but can be dereferenced. Array rvalues Although arrays cannot be …
Comparison operators - cppreference.com
Built-in pointer equality comparison The converted operands of equality operators == and != can also have the type std::nullptr_t,(since C++11) pointer type or pointer-to-member type. Built-in pointer …
Pointer declaration - cppreference.com
Pointer declaration Pointer is a type of an object that refers to a function or an object of another type, possibly adding qualifiers. Pointer may also refer to nothing, which is indicated by the special null …
std::ptrdiff_t - cppreference.com
Notes std::ptrdiff_t is used for pointer arithmetic and array indexing, if negative values are possible. Programs that use other types, such as int, may fail on, e.g. 64-bit systems when the index exceeds …