pstade::oven::stream_lines

\(^o^)/

#include <iostream>
#include <fstream>
#include <string>

#include <boost/range/algorithm/for_each.hpp>

#include <pstade/oven/stream_lines.hpp>

int
main(){
	namespace oven = pstade::oven;

	std::ifstream	ifs("test.txt");
	
	boost::for_each(oven::stream_lines(ifs), [](std::string line){
		std::cout << line << std::endl;
	});

	return 0;
}

[参照]
http://d.hatena.ne.jp/gintenlabo/20100618/1276892532