1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add compost some ranges.

This commit is contained in:
bolero-MURAKAMI 2012-11-24 15:57:50 +09:00
parent cc4ade67fd
commit 05f75bef27
19 changed files with 289 additions and 13 deletions

View file

@ -29,7 +29,7 @@ namespace sprout {
: old_(old_value)
, new_(new_value)
{}
SPROUT_CONSTEXPR T const& operator()(T const& value) const {
SPROUT_CONSTEXPR T operator()(T const& value) const {
return (value == old_) ? new_ : value;
}
};
@ -84,10 +84,10 @@ namespace sprout {
: old_(old_value)
, new_(new_value)
{}
SPROUT_CONSTEXPR value_type old_value() const {
SPROUT_CONSTEXPR value_type const& old_value() const {
return old_;
}
SPROUT_CONSTEXPR value_type new_value() const {
SPROUT_CONSTEXPR value_type const& new_value() const {
return new_;
}
};