I want to write data from an std::vector to a socket, using the write function, which has this prototype:
std::vector
write
ssize_t write
By taking the address of the first element, with &vec[0], as the standard (since C++03, I think) demands continous storage of std::vector elements.
&vec[0]