| 252 | } |
| 253 | |
| 254 | void upper(queue_back<std::string> in, queue_front<std::string> out) |
| 255 | { |
| 256 | std::string line; |
| 257 | while (in.pop(line)) |
| 258 | { |
| 259 | std::string new_line; |
| 260 | for (char c : line) |
| 261 | new_line.push_back(std::toupper(c)); |
| 262 | out.push(new_line); |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | void writer(queue_back<std::string> in) |
| 267 | { |