Skip to content

std::span

Key guidelines for using std::span safely and effectively:

  • std::span is a non-owning view
  • Great for function parameters
  • Dangerous as class members
  • const semantics differ from containers