SyntaxFix
Write A Post
Hire A Developer
Questions
#include <boost/range/algorithm/count.hpp> std::string str = "a_b_c"; int cnt = boost::count(str, '_');