About 58 results
Open links in new tab
  1. 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 ”, …

  2. 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 …

  3. 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 ...

  4. 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.

  5. 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 …

  6. Metaprogramming library (since C++11) - cppreference.com

    C++ provides metaprogramming facilities, such as type traits, compile-time rational arithmetic, and compile-time integer sequences.

  7. 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 …

  8. 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 …

  9. 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 …

  10. 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 …