Vector VS Loop In a way,a vector as a data structure is closely related to a loop as a control structure. Traversing a vector(for the purpose of inspection,search, summation,etc.)is typically carried out with a single iterative construct. Just as the loop is a control structure for describing lengthy processes,so is a vector a data structure for representing lengthy lists of data items.Vector VS Loop In a way, a vector as a data structure is closely related to a loop as a control structure. Traversing a vector (for the purpose of inspection, search, summation, etc.) is typically carried out with a single iterative construct. Just as the loop is a control structure for describing lengthy processes, so is a vector a data structure for representing lengthy lists of data items