I have an inherited class InhClass which is derived from a Base Class (abstract class). In my Inherited class i have to override a function of Base Class which returns a vector of some devicetype class objs. In that function i am using an external library function which is returning a vector of different class type.
Inherited Class
std::vector<devicetype> basefunction(){
externalclassfunction(); // returns std::vector<std::unique_ptr<BluetoothDevice>>
}
Is there any way to convert the vector of external library class unique pointer (BluetoothDevice) to the vector of class of devicetype class?