C++のstd::mapでみつからなかったときに
例外throwしたりしたら私だって怒りますよ!
だって受け取るの超めんどくさいんだもん
でも
std::map< std::string, std::string >::iterator i =
m.find( "abc" );
if( i == m.end() ) {
s = "default";
} else {
s = (*i).second;
}
とか書くのももうイヤです!
value_typeをboost::optionにすればいいのかな