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:

http://stackoverflow.com/questions/21786495/cuda-kernel-returning-vectors