Thrust Push Back!

I’m trying to implement vector code from C to cuda and using thrust instead of vectors. I’ve tried to make raw pointer and use thrust inside kernel but I’m stuck with vector push back function. How can I use vector push back like function using thrust? Thankyou.

This question/answer may be of interest: