I want to use std::vector for dynamically allocating memory. The scenario is:
int neededLength = computeLength(); // some logic here // this will allocate t
Try &(buffer.front()), but it's not much prettier :)
&(buffer.front())