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

std::search returns an iterator, but 016-algorithm states it returns bool #130

Open
kimajin opened this issue Sep 24, 2019 · 0 comments
Open

Comments

@kimajin
Copy link

kimajin commented Sep 24, 2019

16.6節のsearch中の例のコードをコンパイルすると,no viable conversion error となります.

std::searchの動作は(文中の記法のもと)
「要素の並びがイテレーター[first1, last1)の範囲に存在すれば,
最初に一致する並びの先頭のイテレータを返し,そうでない場合はlast1を返す」
ではないでしょうか.

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