How to initialize std::vector from C-style array?

Don’t forget that you can treat pointers as iterators:

w_.assign(w, w + len);

Leave a Comment