c++ 11: &v[0] on empty std::vector v

前端 未结 0 1518
心在旅途
心在旅途 2021-02-04 16:37

If I have an std::vector v that can sometimes be empty, is it just pure luck with g++ that I can get the pointer to this not-existing data with &v[0] or will I get a seg fau

相关标签:
回答
  • 消灭零回复
提交回复
热议问题