i'm writting a dll that has a vector and has a function to add an instance to the vector. heres the code i have in the dll

PHP Code:
vector<playerplayers(0);

export charplayerCreate(char *""double si 0)
{
    
string name n;
    
player temp(namestatic_cast<int>(si));
    
    
players.insert(players.size(), temp);
    return (
n);

i want to add the line players.insert(players.size(), temp); into the function, but i'm confussed how i can get the vector into the function. can anyone show me how to do it? thank you for your help.