| 284 | |
| 285 | template <typename T, typename alloc> |
| 286 | void serialize ( |
| 287 | const std_vector_c<T,alloc>& item, |
| 288 | std::ostream& out |
| 289 | ) |
| 290 | { |
| 291 | try |
| 292 | { |
| 293 | const unsigned long size = static_cast<unsigned long>(item.size()); |
| 294 | |
| 295 | serialize(size,out); |
| 296 | for (unsigned long i = 0; i < item.size(); ++i) |
| 297 | serialize(item[i],out); |
| 298 | } |
| 299 | catch (serialization_error& e) |
| 300 | { throw serialization_error(e.info + "\n while serializing object of type std_vector_c"); } |
| 301 | } |
| 302 | |
| 303 | // ---------------------------------------------------------------------------------------- |
| 304 |
nothing calls this directly
no test coverage detected