| 137 | } |
| 138 | |
| 139 | void construct(T *p, const T &val) // 负责对象构造 |
| 140 | { |
| 141 | new (p) T(val); // 定位 new: 在地址 p 创建值为 val 的对象 |
| 142 | } |
| 143 | |
| 144 | template<typename... Types> // 接受不定参的构造方法 |
| 145 | void construct(T* ptr, Types&&... args) |
no outgoing calls
no test coverage detected