rewrite sprout::algorithm::join performance

This commit is contained in:
bolero-MURAKAMI 2012-05-22 01:06:13 +09:00
parent 0ceabb5b9b
commit 1ea9d30e2a
145 changed files with 1359 additions and 364 deletions

View file

@ -4,7 +4,7 @@
// Copyright (c) 2012
// bolero-MURAKAMI : http://d.hatena.ne.jp/boleros/
// osyo-manga : http://d.hatena.ne.jp/osyo-manga/
//
//
// Readme:
// https://github.com/osyo-manga/cpp-half/blob/master/README
//
@ -18,11 +18,11 @@
int
main(){
namespace w = sprout::weed;
static constexpr auto max_string_size = 32;
static constexpr auto space = *w::omit[ w::space ];
static constexpr auto remove_space = *w::lim<max_string_size>(space >> w::char_);
static constexpr auto source = sprout::to_string(" homu : mami= 10 ");
static constexpr auto result = w::parse(
sprout::begin(source), sprout::end(source),