s*****n 发帖数: 994 | 1 set_union (current_tree_indexes.begin(), current_tree_indexes.end(), tree_
indexes.begin(),tree_indexes.end(), inserter(tree_indexes, tree_indexes.end(
)));
is working.
But
set_union (current_tree_indexes.begin(), current_tree_indexes.end(), tree_
indexes.begin(),tree_indexes.end(), back_inserter(tree_indexes))
is not working... | f*******n 发帖数: 12623 | 2 back_inserter requires a Back Insertion Sequence. I don't know what type "
tree_indexes" is, but if it is a set, set is not a Back Insertion Sequence. inserter just requires a Container. | s*****n 发帖数: 994 | 3 Thank you!
tree_indexes is a set
. inserter just requires a Container.
【在 f*******n 的大作中提到】 : back_inserter requires a Back Insertion Sequence. I don't know what type " : tree_indexes" is, but if it is a set, set is not a Back Insertion Sequence. inserter just requires a Container.
|
|