Which is a better c++ container for holding and accessing binary data?
std::vector
or
std::string
You should prefer std::vector over std::string. In common cases both solutions can be almost equivalent, but std::strings are designed specifically for strings and string manipulation and that is not your intended use.