| 44 | explicit SftSharedPtrStash(int ser_no) : ser_no{ser_no} {} |
| 45 | void Clear() { stash.clear(); } |
| 46 | void Add(const std::shared_ptr<Sft> &obj) { |
| 47 | if (!obj->history.empty()) { |
| 48 | obj->history += "_Stash" + std::to_string(ser_no) + "Add"; |
| 49 | } |
| 50 | stash.push_back(obj); |
| 51 | } |
| 52 | void AddSharedFromThis(Sft *obj) { |
| 53 | auto sft = obj->shared_from_this(); |
| 54 | if (!sft->history.empty()) { |
no test coverage detected