Question: Consider the incomplete code below and indicate which of the code ( i ) will: Modify the targetList using the splice function to move elements
Consider the incomplete code below and indicate which of the code i will:
Modify the targetList using the splice function to move elements from the sourceList as indicated in the comment.
#include
#include
int main
std::list sourceList ;
std::list targetList ;
result targetList should be
i
std::cout "Modified targetList
;
for int item : targetList
std::cout item ;
a
targetList.splicetargetListend sourceList;
b
targetList.splicetargetListbegin sourceList;
c
targetList.splicetargetListbegin sourceList, sourceList.begin;
d
targetList.splicetargetListend sourceList, sourceList.begin;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
