const'ing sorted_vector_map::count()
authorTom Jackson <tjackson@fb.com>
Wed, 26 Jun 2013 19:32:28 +0000 (12:32 -0700)
committerSara 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

index afe9279cda1c4dbbb5c9cb791ffde3b0bcd4539d..d55038499f02f984fdee12f524637c1c8ef38f6f 100644 (file)
@@ -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;
   }