Clear vector data in structure
As we generally clear vector after usage to have better performance..... Issue I am facing is how to do so when it is structure member? To elaborate, I have one structure having two int and two bool along with one vector... In default constructor, using initialisation of data except vector... Now when class object is used as reference argument of function, data getting filled up in object including vector details also... Should I need to clear vector or is it not necessary? Please feel free to ask for clarification if question is not clear..