Is there a fast (CPU) way to cast a `char` array into a `std::vector<char>`?

My function looks like this:

```
void someFunction(char* data, int size)
{
    // Now here I need to make the std::vector<char>
    // using the data and size.
}

```