Don’t forget that you can treat pointers as iterators:
w_.assign(w, w + len);
More Related Contents:
- Is std::vector so much slower than plain arrays?
- array vs vector vs list
- C++ STL: Array vs Vector: Raw element accessing performance
- How to cheaply assign C-style array to std::vector?
- Invalid operands to binary expression while implementing vector [closed]
- Difficulties on atributting a array to another [closed]
- What is the easiest way to initialize a std::vector with hardcoded elements?
- Alternative to vector
- Correct way to work with vector of arrays
- Why isn’t vector a STL container?
- std::vector versus std::array in C++
- Best way to extract a subvector from a vector?
- reduce the capacity of an stl vector
- How to sum up elements of a C++ vector?
- How to avoid memory leaks when using a vector of pointers to dynamically allocated objects in C++?
- Arrays vs Vectors: Introductory Similarities and Differences [closed]
- char* vs std::string in c++ [closed]
- What is the difference between std::array and std::vector? When do you use one over other? [duplicate]
- how do you insert the value in a sorted vector?
- How to use std::sort with a vector of structures and compare function?
- Reorder vector using a vector of indices [duplicate]
- C++ std::vector vs array in the real world
- std::vector, default construction, C++11 and breaking changes
- Can std::begin work with array parameters and if so, how?
- std::vector iterator invalidation
- How to downsize std::vector?
- C++ convert vector to vector
- Getting a vector into a function that expects a vector
- C++ template function compiles in header but not implementation
- vector and const