Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16章none_ofの実装について #158

Open
sukiima opened this issue Sep 30, 2021 · 0 comments
Open

16章none_ofの実装について #158

sukiima opened this issue Sep 30, 2021 · 0 comments

Comments

@sukiima
Copy link

sukiima commented Sep 30, 2021

 本文では、non_ofの実装として

{
    for ( auto iter = first ; first != last ; ++iter )
    {
        if ( pred(*iter) )
            return false ;
    }
    return true ;
} ;

とありますが、for文の終了条件は

iter != last

ではないでしょうか。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant