This question is related to, but not quite the same as, this question.
Are there any benefits to using std::vector<char>
instead of std::string
to hold arbitrary binary data, aside from readability-related issues?
i.e. Are there any tasks which are easier/more efficient/better to perform with a vector compared to a string?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…