首页 > 技术文章 > how to clear stringstream

ezhang 2014-09-30 10:29 原文

std::stringstream ss;

// operations against ss
ss.clear();
ss.str(std::string());
 
from: http://stackoverflow.com/questions/2848087/how-to-clear-stringstream

推荐阅读