数组、指针与 C 风格接口边界 | C++

本章覆盖:built-in array;array-to-pointer decay;array size information loss;pointer arithmetic;C string;null terminator;pointer + length;span 思想的后续连接;与 C API / OS API 交互;新业务代码避免把裸数组作为复杂接口。

本章知识点

  • built-in array
  • array-to-pointer decay
  • array size information loss
  • pointer arithmetic
  • C string
  • null terminator
  • pointer + length
  • span 思想的后续连接
  • 与 C API / OS API 交互
  • 新业务代码避免把裸数组作为复杂接口