mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-09 00:21:16 +02:00
Correct transform_iterator ?
This commit is contained in:
parent
7ab97c969c
commit
d6dea3d224
@ -647,7 +647,7 @@ public:
|
|||||||
transform_iterator operator -- (int)
|
transform_iterator operator -- (int)
|
||||||
{ auto copy{*this}; --this->mIterator; return copy; }
|
{ auto copy{*this}; --this->mIterator; return copy; }
|
||||||
|
|
||||||
typename transform_iterator::reference operator * ()
|
Result operator * ()
|
||||||
{ return this->mFunction(this->mIterator); }
|
{ return this->mFunction(this->mIterator); }
|
||||||
|
|
||||||
friend inline bool operator == (
|
friend inline bool operator == (
|
||||||
@ -676,8 +676,8 @@ template < typename Function, typename Iterator > struct value_transformer
|
|||||||
// Adapts a function on values to a function on iterators.
|
// Adapts a function on values to a function on iterators.
|
||||||
Function function;
|
Function function;
|
||||||
|
|
||||||
auto operator () (const Iterator &iterator)
|
auto operator () (const Iterator &iterator) const
|
||||||
-> decltype( function( *iterator ) ) const
|
-> decltype( function( *iterator ) )
|
||||||
{ return this->function( *iterator ); }
|
{ return this->function( *iterator ); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user