Skip to content
  • Ben Boeckel's avatar
    c++: prefer vectors over lists · 3e027d9d
    Ben Boeckel authored and Brad King's avatar Brad King committed
    None of these usages of `std::list` were inserting or removing elements
    in the middle of the structure, so there were no benefits to using it.
    
    Other uses were related to C pointers being stable in a list of strings
    whereas in a vector of strings, small pointer optimizations could be
    moved and become invalid after a modification to the hosting vector.
    None of these uses modified the vector after handing out a C string to
    an external store.
    3e027d9d