projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
423eed2
)
const'ing sorted_vector_map::count()
author
Tom Jackson
<tjackson@fb.com>
Wed, 26 Jun 2013 19:32:28 +0000
(12:32 -0700)
committer
Sara Golemon
<sgolemon@fb.com>
Mon, 1 Jul 2013 19:57:43 +0000
(12:57 -0700)
Test Plan: Use it
Reviewed By: tudorb@fb.com
FB internal diff:
D865211
folly/sorted_vector_types.h
patch
|
blob
|
history
diff --git
a/folly/sorted_vector_types.h
b/folly/sorted_vector_types.h
index afe9279cda1c4dbbb5c9cb791ffde3b0bcd4539d..d55038499f02f984fdee12f524637c1c8ef38f6f 100644
(file)
--- a/
folly/sorted_vector_types.h
+++ b/
folly/sorted_vector_types.h
@@
-515,7
+515,7
@@
public:
return end();
}
- size_type count(const key_type& key) {
+ size_type count(const key_type& key)
const
{
return find(key) == end() ? 0 : 1;
}