mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
bug fix
This commit is contained in:
parent
73ead93fe5
commit
69910ca06c
6 changed files with 21 additions and 9 deletions
|
@ -55,13 +55,13 @@ namespace sprout {
|
|||
iterator_type last;
|
||||
predicate_type pred;
|
||||
private:
|
||||
iterator_type satisfy_predicate() {
|
||||
while (current != last && !pred(current)) {
|
||||
void satisfy_predicate() {
|
||||
while (current != last && !pred(*current)) {
|
||||
++current;
|
||||
}
|
||||
}
|
||||
iterator_type satisfy_predicate_backward() {
|
||||
while (!pred(current)) {
|
||||
void satisfy_predicate_backward() {
|
||||
while (!pred(*current)) {
|
||||
--current;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue