ensure() and find(key) member functions are declared using [[deprecated]] attribute
[libcds.git] / cds / container / impl / michael_list.h
index a321d25868ada5f0a17e569b5cd34f9d4fe21605..e530f4c3562fdfffa74fbc36bd97b3067f76a2b3 100644 (file)
@@ -544,8 +544,8 @@ namespace cds { namespace container {
             return find_at( head(), key, intrusive_key_comparator() );
         }
         //@cond
-        // Deprecated, use contains()
         template <typename Q>
+        CDS_DEPRECATED("deprecated, use contains()")
         bool find( Q const& key )
         {
             return contains( key );
@@ -565,8 +565,8 @@ namespace cds { namespace container {
             return find_at( head(), key, typename maker::template less_wrapper<Less>::type() );
         }
         //@cond
-        // Deprecated, use contains()
         template <typename Q, typename Less>
+        CDS_DEPRECATED("deprecated, use contains()")
         bool find_with( Q const& key, Less pred )
         {
             return contains( key, pred );