Boost C++库具有Function Template tee
类模板tee_filter和tee_device提供了两种分割输出序列的方法,以便将所有数据同时定向到两个不同的位置.
我正在寻找一个完整的C++示例,使用Boost tee输出到标准输出和像"sample.txt"这样的文件.
c++ boost-iostreams
boost-iostreams ×1
c++ ×1