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:
parent
cc4ade67fd
commit
05f75bef27
19 changed files with 289 additions and 13 deletions
|
@ -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_;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue