Question: Lets say I have initialized pair < shared_ptr , shared_ptr > temp; And I have to write a function called pair CloseAndFar(const vector & fleet)

Lets say I have initialized

pair < shared_ptr, shared_ptr> temp;

And I have to write a function called

pair, shared_ptr> CloseAndFar(const vector>& fleet) {

// CODE

}

In this function, I have to modify temp and return the temp but I have no idea how to modify temp.

Help please.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!