| 260 | } |
| 261 | |
| 262 | void upper(queue_back<std::string> in, queue_front<std::string> out) |
| 263 | { |
| 264 | std::string line; |
| 265 | while (in.pop(line)) |
| 266 | { |
| 267 | std::string new_line; |
| 268 | for (char c : line) |
| 269 | new_line.push_back(std::toupper(c)); |
| 270 | out.push(new_line); |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | void writer(queue_back<std::string> in) |
| 275 | { |