| 12 | // Reduced from a use case in the wild. |
| 13 | struct VectorOwner { |
| 14 | static std::unique_ptr<VectorOwner> Create(std::size_t num_elems) { |
| 15 | return std::unique_ptr<VectorOwner>( |
| 16 | new VectorOwner(std::vector<std::unique_ptr<DataType>>(num_elems))); |
| 17 | } |
| 18 | |
| 19 | std::size_t data_size() const { return data_.size(); } |
| 20 |
no outgoing calls
no test coverage detected