The question doesn’t make much sense as C++ and blueprints are a way of specifying functionality.
What you are asking is how to spawn an actor and it doesn’t matter to the spawner if the spawned actor is implemented in C++, blueprint or a mix of the two.
You probably want to look at Actor Component which is a method of attaching one actor (weapon) to another (the player).