Removed redundant functions
authorkhizmax <khizmax@gmail.com>
Wed, 3 Aug 2016 09:45:39 +0000 (12:45 +0300)
committerkhizmax <khizmax@gmail.com>
Wed, 3 Aug 2016 09:45:39 +0000 (12:45 +0300)
cds/container/impl/iterable_kvlist.h
cds/container/impl/iterable_list.h
cds/intrusive/impl/iterable_list.h

index 19d2615..2826d2e 100644 (file)
@@ -582,7 +582,7 @@ namespace cds { namespace container {
             If \p key is not found the function returns \p end().
         */
         template <typename Q, typename Less>
-        iterator find_with( Q& key, Less pred ) const
+        iterator find_with( Q const& key, Less pred ) const
         {
             CDS_UNUSED( pred );
             return base_class::find_with( key, less_wrapper<Less>());
index 83a0221..e51234c 100644 (file)
@@ -622,17 +622,10 @@ namespace cds { namespace container {
             If \p key is not found the function returns \p end().
         */
         template <typename Q>
-        iterator find( Q& key ) const
-        {
-            return find_iterator_at( head(), key, key_comparator());
-        }
-        //@cond
-        template <typename Q>
         iterator find( Q const& key ) const
         {
-            return find_iterator_at( head(), key, key_comparator() );
+            return find_iterator_at( head(), key, key_comparator());
         }
-        //@endcond
 
         /// Finds \p key using \p pred predicate for searching
         /**
@@ -664,19 +657,11 @@ namespace cds { namespace container {
             If \p key is not found the function returns \p end().
         */
         template <typename Q, typename Less>
-        iterator find_with( Q& key, Less pred ) const
-        {
-            CDS_UNUSED( pred );
-            return find_iterator_at( head(), key, cds::opt::details::make_comparator_from_less<Less>());
-        }
-        //@cond
-        template <typename Q, typename Less>
         iterator find_with( Q const& key, Less pred ) const
         {
             CDS_UNUSED( pred );
             return find_iterator_at( head(), key, cds::opt::details::make_comparator_from_less<Less>());
         }
-        //@endcond
 
         /// Finds \p key and return the item found
         /** \anchor cds_nonintrusive_MichaelList_hp_get
index 169496d..ccc50be 100644 (file)
@@ -662,17 +662,10 @@ namespace cds { namespace intrusive {
             If \p key is not found the function returns \p end().
         */
         template <typename Q>
-        iterator find( Q& key ) const
-        {
-            return find_iterator_at( m_pHead, key, key_comparator());
-        }
-        //@cond
-        template <typename Q>
         iterator find( Q const& key ) const
         {
-            return find_iterator_at( m_pHead, key, key_comparator() );
+            return find_iterator_at( m_pHead, key, key_comparator());
         }
-        //@endcond
 
         /// Finds the \p key using \p pred predicate for searching
         /**
@@ -705,19 +698,11 @@ namespace cds { namespace intrusive {
             If \p key is not found the function returns \p end().
         */
         template <typename Q, typename Less>
-        iterator find_with( Q& key, Less pred ) const
-        {
-            CDS_UNUSED( pred );
-            return find_iterator_at( m_pHead, key, cds::opt::details::make_comparator_from_less<Less>());
-        }
-        //@cond
-        template <typename Q, typename Less>
         iterator find_with( Q const& key, Less pred ) const
         {
             CDS_UNUSED( pred );
             return find_iterator_at( m_pHead, key, cds::opt::details::make_comparator_from_less<Less>());
         }
-        //@endcond
 
         /// Checks whether the list contains \p key
         /**