| 201 | typename T |
| 202 | > |
| 203 | void deserialize ( |
| 204 | circular_buffer<T>& item, |
| 205 | std::istream& in |
| 206 | ) |
| 207 | { |
| 208 | try |
| 209 | { |
| 210 | unsigned long size; |
| 211 | deserialize(size,in); |
| 212 | item.resize(size); |
| 213 | for (unsigned long i = 0; i < size; ++i) |
| 214 | deserialize(item[i],in); |
| 215 | } |
| 216 | catch (serialization_error& e) |
| 217 | { |
| 218 | item.clear(); |
| 219 | throw serialization_error(e.info + "\n while deserializing object of type circular_buffer"); |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | // ---------------------------------------------------------------------------------------- |
| 224 |
nothing calls this directly
no test coverage detected