由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - what's the difference of back_inserter and inserter in c++
相关主题
Insert bounding box这里还有比我更弱的么?
小公司软工第一轮电面问个我不太理解的问题--在别的地方看来的
google phone interview一道caeerCup上的难算法题
CLRS 这本书要看哪几章?Technical Aptitude Questions 中的一道题
有人碰到过让interview当场写这个的么?有疑问的一题
BST的insertion问个经典问题的improvement
One interview question (A)问个简单的GooG题目
leetcode 的 Insert Interval 就是过不了大的一个data structure design的问题,求助
相关话题的讨论汇总
话题: inserter话题: indexes话题: tree话题: back话题: end
进入JobHunting版参与讨论
1 (共1页)
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.

1 (共1页)
进入JobHunting版参与讨论
相关主题
一个data structure design的问题,求助有人碰到过让interview当场写这个的么?
电面结束之后BST的insertion
一道linked list编程题One interview question (A)
一道关于priorityqueue的面试题,谁能给个正确解答?leetcode 的 Insert Interval 就是过不了大的
Insert bounding box这里还有比我更弱的么?
小公司软工第一轮电面问个我不太理解的问题--在别的地方看来的
google phone interview一道caeerCup上的难算法题
CLRS 这本书要看哪几章?Technical Aptitude Questions 中的一道题
相关话题的讨论汇总
话题: inserter话题: indexes话题: tree话题: back话题: end