I've 2 vectors, namely deals_all and deals_new of FXDeal, where FxDeal is a class
struct FxDeal
{
int deal_id_; // primary key
string ccy_pair_;
double amount_;
}
How could I merge deals_new into deals_all so that
- new deals in
deals_neware copied or appended todeals_all, and - deals in
deals_allthat appear also indeal_new(by primary keydeal_id_), will have fieldccy_pair_andamount_updated
I'm using c++11.
Aucun commentaire:
Enregistrer un commentaire