diff --git a/include/boost/container/experimental/segmented_set_difference.hpp b/include/boost/container/experimental/segmented_set_difference.hpp index c2adade..1d8ebf8 100644 --- a/include/boost/container/experimental/segmented_set_difference.hpp +++ b/include/boost/container/experimental/segmented_set_difference.hpp @@ -49,7 +49,7 @@ OutIter set_difference_scan InIter2 first2 = first2_out; while(first != last && first2 != last2) { - if(comp(*first, *first2)) { *result = *first; ++first; ++result; } + if (comp(*first, *first2)) { *result = *first; ++first; ++result; } else if(comp(*first2, *first)) { ++first2; } else { ++first; ++first2; } } diff --git a/include/boost/container/experimental/segmented_set_intersection.hpp b/include/boost/container/experimental/segmented_set_intersection.hpp index ae44f5f..9094181 100644 --- a/include/boost/container/experimental/segmented_set_intersection.hpp +++ b/include/boost/container/experimental/segmented_set_intersection.hpp @@ -47,9 +47,9 @@ OutIter set_intersection_scan { InIter2 first2 = first2_out; while(first != last && first2 != last2) { - if(comp(*first, *first2)) { ++first; } - else if(comp(*first2, *first)) { ++first2; } - else { *result = *first; ++first; ++first2; ++result; } + if (comp(*first, *first2)) { ++first; } + else if (comp(*first2, *first)) { ++first2; } + else { *result = *first; ++first; ++first2; ++result; } } first2_out = first2; return result; diff --git a/include/boost/container/experimental/segmented_set_symmetric_difference.hpp b/include/boost/container/experimental/segmented_set_symmetric_difference.hpp index c32b1fd..5440829 100644 --- a/include/boost/container/experimental/segmented_set_symmetric_difference.hpp +++ b/include/boost/container/experimental/segmented_set_symmetric_difference.hpp @@ -47,9 +47,9 @@ void set_symmetric_difference_scan(FwdIt first, FwdIt last, InIter2& first2, Sen non_segmented_iterator_tag) { while(first != last && first2 != last2) { - if(comp(*first, *first2)) { *result = *first; ++first; ++result; } - else if(comp(*first2, *first)) { *result = *first2; ++first2; ++result; } - else { ++first; ++first2; } + if (comp(*first, *first2)) { *result = *first; ++first; ++result; } + else if (comp(*first2, *first)) { *result = *first2; ++first2; ++result; } + else { ++first; ++first2; } } result = (segmented_copy)(first, last, result); } diff --git a/include/boost/container/experimental/segmented_set_union.hpp b/include/boost/container/experimental/segmented_set_union.hpp index 616bdad..04ad447 100644 --- a/include/boost/container/experimental/segmented_set_union.hpp +++ b/include/boost/container/experimental/segmented_set_union.hpp @@ -48,9 +48,9 @@ InIter2 set_union_scan(FwdIt first, FwdIt last, InIter2 first2, Sent2 last2, Out { OutIter result = out; //Avoid aliasing while(first != last && first2 != last2) { - if(comp(*first, *first2)) { *result = *first; ++first; } - else if(comp(*first2, *first)) { *result = *first2; ++first2; } - else { *result = *first; ++first; ++first2; } + if (comp(*first, *first2)) { *result = *first; ++first; } + else if (comp(*first2, *first)) { *result = *first2; ++first2; } + else { *result = *first; ++first; ++first2; } ++result; }