summaryrefslogtreecommitdiffhomepage
path: root/c++.html.markdown
diff options
context:
space:
mode:
authorPriti Xavier <pritix@users.noreply.github.com>2020-09-29 20:50:47 +0800
committerGitHub <noreply@github.com>2020-09-29 14:50:47 +0200
commite07193e6b463a70a70d58bcaf2936362d9d96e75 (patch)
treebce78584e61e3938eeecef21643364360ca23fd5 /c++.html.markdown
parent6e4b3a5f315930e2c3d58969ef377577e5ef9459 (diff)
Changed operator < to != (#4004)
Diffstat (limited to 'c++.html.markdown')
-rw-r--r--c++.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++.html.markdown b/c++.html.markdown
index 626da194..948b52ec 100644
--- a/c++.html.markdown
+++ b/c++.html.markdown
@@ -915,7 +915,7 @@ ST.erase(20); // Will erase element with value 20
// Set ST: 10 30
// To iterate through Set we use iterators
set<int>::iterator it;
-for(it=ST.begin();it<ST.end();it++) {
+for(it=ST.begin();it!=ST.end();it++) {
cout << *it << endl;
}
// Output: