I have a two shared pointers to vector of strings:
b_paras
and b_paras_sig
I have traversed the loop for each, using range based for
loop as follows:
for ( const std::string ¶1 : *b_paras )
and
for ( const std::string ¶2 : *b_paras_sig)
Now I want to compare the each element of these vectors, index by index and find out the mismatch.
I think nested loop may not fit as a solution here.
Is there any way to solve this?
Thanks in advance.
question from:
https://stackoverflow.com/questions/65939223/how-to-compare-two-vectors-index-by-index-contained-by-shared-ptr 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…