return res;
}
//@cond
- // Deprecated, use update()
template <typename K, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( K const& key, Func func )
{
return update( key, func, true );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename K>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( K const& key )
{
return contains( key );
return base_class::contains( key, cds::details::predicate_wrapper< leaf_node, Less, typename maker::key_accessor >() );
}
//@cond
- // Deprecated, use contains()
template <typename K, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( K const& key, Less pred )
{
return contains( key, pred );
return bRes;
}
//@cond
- // Deprecated, use update()
template <typename Q, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( const Q& val, Func func )
{
return update( val, func, true );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key ) const
{
return contains( key );
return base_class::contains( key, cds::details::predicate_wrapper< leaf_node, Less, typename maker::value_accessor >());
}
//@cond
- // DEprecated, use contains()
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( Q const& key, Less pred ) const
{
return contains( key, pred );
return res;
}
//@cond
- // Deprecated, use update()
template <typename K, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( K const& key, Func func )
{
return update( key, func, true );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename K>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( K const& key )
{
return contains( key );
return base_class::contains( key, cds::details::predicate_wrapper< leaf_node, Less, typename maker::key_accessor >() );
}
//@cond
- // Deprecated, use contains()
template <typename K, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( K const& key, Less pred )
{
return contains( key, pred );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const & key )
{
return contains( key );
return base_class::contains( key, cds::details::predicate_wrapper< leaf_node, Less, typename maker::value_accessor >());
}
//@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 );
return update_at( head(), key, f, bAllowInsert );
}
//@cond
- // Deprecated
template <typename K, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( const K& key, Func f )
{
return update( key, f, true );
return find_at( head(), key, intrusive_key_comparator() );
}
//@cond
- // Deprecated
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return find_at( head(), key, typename maker::template less_wrapper<Less>::type() );
}
//@cond
- // Deprecated
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( Q const& key, Less pred )
{
return contains( key, pred );
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 );
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 );
return update_at( head(), key, f, bAllowInsert );
}
//@cond
- // Deprecated
template <typename K, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( K const& key, Func f )
{
return update( key, f, true );
return find_at( head(), key, intrusive_key_comparator() );
}
//@cond
- // Deprecated
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return find_at( head(), key, typename maker::template less_wrapper<Less>::type() );
}
//@cond
- // Deprecated
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( Q const& key, Less pred )
{
CDS_UNUSED( pred );
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 );
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 );
return res;
}
//@cond
- // Deprecated, use update()
template <typename K, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( K const& key, Func func )
{
return update( key, func, true );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename K>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( K const& key )
{
return contains( key );
return base_class::contains( key, cds::details::predicate_wrapper< node_type, Less, typename maker::key_accessor >() );
}
//@cond
- // Deprecated, use contains()
template <typename K, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( K const& key, Less pred )
{
return contains( key, pred );
return bRes;
}
//@cond
- // Deprecated, use update()
template <typename Q, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( const Q& val, Func func )
{
return update( val, func, true );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return base_class::contains( key, cds::details::predicate_wrapper< node_type, Less, typename maker::value_accessor >());
}
//@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 );
return std::make_pair( node_to_iterator( ret.first ), ret.second );
}
//@cond
- // Deprecated, use update()
template <typename K>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<iterator, bool> ensure( const K& key )
{
return update( key, true );
return node_to_iterator( find_at( head(), key, intrusive_key_comparator() ) );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find( Q const& key )
{
return contains( key );
return node_to_iterator( find_at( head(), key, typename maker::template less_wrapper<Less>::type() ) );
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Less, bool Sort = c_bSort>
+ CDS_DEPRECATED("deprecated, use contains()")
typename std::enable_if<Sort, iterator>::type find_with( Q const& key, Less pred )
{
return contains( key, pred );
return node_to_iterator( find_at( head(), key, typename maker::template equal_to_wrapper<Equal>::type() ) );
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Equal, bool Sort = c_bSort>
+ CDS_DEPRECATED("deprecated, use contains()")
typename std::enable_if<!Sort, iterator>::type find_with( Q const& key, Equal equal )
{
return contains( key, equal );
return update_at( head(), key, func, bAllowInsert );
}
//@cond
- // Deprecated
template <typename K, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( const K& key, Func f )
{
return update( key, f, true );
return find_at( head(), key, intrusive_key_comparator() );
}
//@cond
- // Deprecated
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key ) const
{
return contains( key );
return find_at( head(), key, typename maker::template less_wrapper<Less>::type() );
}
//@cond
- // Deprecated
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( Q const& key, Less pred ) const
{
return contains( key, pred );
return std::make_pair( node_to_iterator( ret.first ), ret.second );
}
//@cond
- // Deprecated, use update()
template <typename Q>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<iterator, bool> ensure( Q const& val )
{
return update( val, true );
return node_to_iterator( find_at( head(), key, intrusive_key_comparator() ));
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find( Q const& key )
{
return contains( key );
return node_to_iterator( find_at( head(), key, typename maker::template less_wrapper<Less>::type() ));
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Less, bool Sort = c_bSort>
+ CDS_DEPRECATED("deprecated, use contains()")
typename std::enable_if<Sort, iterator>::type find_with( Q const& key, Less pred )
{
return contains( key, pred );
return node_to_iterator( find_at( head(), key, typename maker::template equal_to_wrapper<Equal>::type() ));
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Equal, bool Sort = c_bSort>
+ CDS_DEPRECATED("deprecated, use contains()")
typename std::enable_if<!Sort, iterator>::type find_with( Q const& key, Equal equal )
{
return contains( key, equal );
return update_at( head(), key, func, bAllowInsert );
}
//@cond
- // Deprecated, use update()
template <typename Q, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( Q const& key, Func f )
{
return update( key, f, true );
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 ) const
{
return contains( key );
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 ) const
{
return contains( key, pred );
return std::make_pair( node_to_iterator( ret.first ), ret.second );
}
//@cond
- // Deprecated, use update()
template <typename K>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<iterator, bool> ensure( K const& key )
{
return update( key );
return node_to_iterator( find_at( head(), key, intrusive_key_comparator() ) );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find( Q const& key )
{
return contains( key );
return node_to_iterator( 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()")
iterator find_with( Q const& key, Less pred )
{
return contains( key, pred );
return update_at( head(), key, func, bAllowInsert );
}
//@cond
- // Deprecated
template <typename K, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( const K& key, Func f )
{
return update( key, f, true );
return find_at( head(), key, intrusive_key_comparator() );
}
//@cond
- // Deprecated
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return find_at( head(), key, typename maker::template less_wrapper<Less>::type() );
}
//@cond
- // Deprecated
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( Q const& key, Less pred )
{
return contains( key, pred );
return std::make_pair( node_to_iterator( ret.first ), ret.second );
}
//@cond
- // Deprecated, use update()
template <typename Q>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<iterator, bool> ensure( const Q& val )
{
return update( val, true );
return node_to_iterator( find_at( head(), key, intrusive_key_comparator() ));
}
//@cond
- // Deprecated, ue contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find( Q const& key )
{
return contains( key );
return node_to_iterator( 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()")
iterator find_with( Q const& key, Less pred )
{
return contains( key, pred );
return update_at( head(), key, func, bAllowInsert );
}
//@cond
- // Deprecated, use update()
template <typename Q, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( Q const& key, Func f )
{
return update( key, f, true );
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 );
return bRet;
}
//@cond
- // Deprecated
template <typename K, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( K const& key, Func func )
{
std::pair<bool, bool> bRet = bucket( key ).update( key, func, true );
return bucket( key ).contains( key );
}
//@cond
- // Deprecated
template <typename K>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( K const& key )
{
return bucket( key ).contains( key );
return bucket( key ).contains( key, pred );
}
//@cond
- // Deprecated
template <typename K, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( K const& key, Less pred )
{
return bucket( key ).contains( key, pred );
return std::make_pair( iterator( ret.first, &refBucket, m_Buckets + bucket_count() ), ret.second );
}
//@cond
- // Deprecated, use update()
template <typename K>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<iterator, bool> ensure( K const& key )
{
return update( key, true );
return end();
}
//@cond
- // Deprecated, use contains()
template <typename K>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find( K const& key )
{
return contains( key );
return end();
}
//@cond
- // Deprecated, use contains()
template <typename K, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find_with( K const& key, Less pred )
{
return contains( key, pred );
return bRet;
}
//@cond
- // Deprecated
template <typename K, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( K const& key, Func func )
{
std::pair<bool, bool> bRet = bucket( key ).ensure( key, func );
return bucket( key ).contains( key );
}
//@cond
- // Deprecated
template <typename K>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( K const& key )
{
return bucket( key ).contains( key );
return bucket( key ).contains( key, pred );
}
//@cond
- // Deprecated
template <typename K, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( K const& key, Less pred )
{
return bucket( key ).contains( key, pred );
return base_class::update( std::make_pair( key, mapped_type() ), bInsert );
}
//@cond
- // Deprecated, use update()
template <typename K>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<iterator, bool> ensure( K const& key )
{
return update( key, true );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename K>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find( K const& key )
{
return contains( key );
return base_class::contains( key, pred );
}
//@cond
- // Deprecated, use contains()
template <typename K, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find_with( K const& key, Less pred ) const
{
return contains( key, pred );
return res;
}
//@cond
- // Deprecated, use update()
template <typename K, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( K const& key, Func func )
{
return update( key, func, true );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename K>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( K const& key )
{
return contains( key );
return base_class::contains( key, cds::details::predicate_wrapper< node_type, Less, typename maker::key_accessor >() );
}
//@cond
- // Deprecated, use contains()
template <typename K, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( K const& key, Less pred )
{
return contains( key, pred );
return std::make_pair( node_to_iterator( pNode ), bRes.second );
}
//@cond
- // Deprecated, use update()
template <typename Q>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<iterator, bool> ensure( const Q& val )
{
return update( val, true );
return base_class::nonconst_end();
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find( Q const& key ) const
{
return contains( key );
return base_class::nonconst_end();
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find_with( Q const& key, Less pred ) const
{
return contains( key, pred );
return bRes;
}
//@cond
- // Deprecated, use update()
template <typename Q, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( const Q& val, Func func )
{
return update( val, func, true );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const & key )
{
return contains( key );
return base_class::contains( key, cds::details::predicate_wrapper< node_type, Less, typename maker::value_accessor >());
}
//@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 );
bAllowInsert );
}
//@cond
- // Deprecated, use update()
template <typename K, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( K const& key, Func func )
{
return update( key, func, true );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename K>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( K const& key )
{
return contains( key );
return base_class::contains( key, cds::details::predicate_wrapper<value_type, Less, key_accessor>() );
}
//@cond
- // Deprecated, use contains()
template <typename K, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( K const& key, Less pred )
{
return contains( key, pred );
return base_class::update( std::make_pair( key, mapped_type() ), bAllowInsert );
}
//@cond
- // Deprecated, use update()
template <typename K>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<iterator, bool> ensure( K const& key )
{
return update( key, true );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename K>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find( K const& key )
{
return contains( key );
return base_class::contains( key, cds::details::predicate_wrapper<value_type, Less, key_accessor>() );
}
//@cond
- // Deprecated, use contains()
template <typename K, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find_with( K const& key, Less pred )
{
return contains( key, pred );
bAllowInsert );
}
//@cond
- // Deprecated, use update()
template <typename K, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( K const& key, Func func )
{
return update( key, func, true );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename K>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( K const& key )
{
return base_class::find( key );
return base_class::contains( key, cds::details::predicate_wrapper<value_type, Less, key_accessor>() );
}
//@cond
- // Deprecated, use contains()
template <typename K, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( K const& key, Less pred )
{
return contains( key, pred );
return bRet;
}
//@cond
- // Deprecated, use update()
template <typename Q, typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( Q const& val, Func func )
{
return update( val, func, true );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return base_class::contains( key, typename maker::template predicate_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 );
return std::make_pair( iterator(ret.first), ret.second );
}
//@cond
- // Deprecated, use update()
template <typename Q>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<iterator, bool> ensure( const Q& val )
{
return update( val, true );
return iterator( base_class::find_( key ));
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
iterator find( Q const& key )
{
return contains( key );
return base_class::contains( key );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return base_class::contains( key, typename maker::template predicate_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 );
return std::make_pair( true, true );
}
//@cond
- // Deprecated, use update()
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return find( key, [](value_type&, Q const& ) {} );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return find_with( key, typename predicate_wrapper<Predicate>::type(), [](value_type& , Q const& ) {} );
}
//@cond
- // Deprecated,use contains()
template <typename Q, typename Predicate>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( Q const& key, Predicate pred )
{
return contains( key, pred );
return std::make_pair( true, true );
}
//@cond
- // Deprecated, use update()
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return false;
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key ) const
{
return contains( key );
return false;
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( Q const& key, Less pred ) const
{
return contains( key, pred );
return std::make_pair( true, true );
}
//@cond
- // Deprecated, us update()
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return false;
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key ) const
{
return contains( key );
return false;
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( Q const& key, Less pred ) const
{
return contains( key, pred );
return update_at( &m_Head, val, func, bAllowInsert );
}
//@cond
- // Deprecated, use update()
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return find_at( &m_Head, key, key_comparator() );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return find_at( &m_Head, key, cds::opt::details::make_comparator_from_less<Less>() );
}
//@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 );
}
//@cond
- // Deprecated, use update()
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return find_at( m_pHead, key, key_comparator() );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return find_at( m_pHead, key, cds::opt::details::make_comparator_from_less<Less>() );
}
//@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 );
}
}
//@cond
- // Deprecated, use update() instead
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return find_with_( key, key_comparator(), [](value_type& , Q const& ) {} );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return find_with_( key, cds::opt::details::make_comparator_from_less<Less>(), [](value_type& , Q const& ) {} );
}
//@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 );
return update_at( &m_Head, val, func, bAllowInsert );
}
//@cond
- // Deprecated, use update()
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return find_at( &m_Head, key, key_comparator() );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
value_type * find( Q const& key )
{
return contains( key );
return find_at( &m_Head, key, cds::opt::details::make_comparator_from_less<Less>() );
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Less, bool Sort = c_bSort>
+ CDS_DEPRECATED("deprecated, use contains()")
typename std::enable_if<Sort, value_type *>::type find_with( Q const& key, Less pred )
{
return contains( key, pred );
return find_at( &m_Head, key, equal );
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Equal, bool Sort = c_bSort>
+ CDS_DEPRECATED("deprecated, use contains()")
typename std::enable_if<!Sort, value_type *>::type find_with( Q const& key, Equal equal )
{
return contains( key, equal );
return update_at( &m_Head, val, func, bAllowInsert );
}
//@cond
- // Deprecated, use update()
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return find_at( const_cast<node_type *>( &m_Head ), key, key_comparator() );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key ) const
{
return contains( key );
return find_at( const_cast<node_type *>( &m_Head ), key, cds::opt::details::make_comparator_from_less<Less>() );
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( Q const& key, Less pred ) const
{
return contains( key, pred );
return update_at( m_pHead, val, func, bAllowInsert );
}
//@cond
- // Deprecated, use update()
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func );
return find_at( m_pHead, key, key_comparator() );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
value_type * find( Q const& key )
{
return contains( key );
return find_at( m_pHead, key, cds::opt::details::make_comparator_from_less<Less>());
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
value_type * find_with( Q const& key, Less pred )
{
return contains( key, pred );
return update_at( m_pHead, val, func, bAllowInsert );
}
//@cond
- // Deprecated, use update()
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return find_at( m_pHead, key, key_comparator() );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return find_at( m_pHead, key, cds::opt::details::make_comparator_from_less<Less>() );
}
//@cond
- // Deprecated
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find_with( Q const& key, Less pred )
{
return contains( key, pred );
}
}
//@cond
- // Deprecated, use update() instead
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return nullptr;
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
value_type * find( Q const& key ) const
{
return contains( key );
return nullptr;
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
value_type * find_with( Q const& key, Less pred ) const
{
return contains( key, pred );
return bRet;
}
//@cond
- // Deprecated, use update().
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return do_find_with( key, key_comparator(), [](value_type& , Q const& ) {} );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return do_find_with( key, cds::opt::details::make_comparator_from_less<Less>(), [](value_type& , Q const& ) {} );
}
//@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 );
return bRet;
}
//@cond
- // Deprecated, use update()
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return find_( key, key_comparator() );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return find_( key, typename wrapped_ordered_list::template make_compare_from_less<Less>() );
}
//@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 );
return std::make_pair( ret.first != end(), ret.second );
}
//@cond
- // Deprecated, use update()
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return &*it;
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
value_type * find( Q const& key )
{
return contains( key );
return &*it;
}
//@cond
- // Deprecated, use contains()
template <typename Q, typename Less>
+ CDS_DEPRECATED("deprecated, use contains()")
value_type * find_with( Q const& key, Less pred )
{
return contains( key, pred );
return bRet;
}
//@cond
- // Deprecated, use update()
template <typename Func>
+ CDS_DEPRECATED("ensure() is deprecated, use update()")
std::pair<bool, bool> ensure( value_type& val, Func func )
{
return update( val, func, true );
return find_value( key, key_comparator() );
}
//@cond
- // Deprecated, use contains()
template <typename Q>
+ CDS_DEPRECATED("deprecated, use contains()")
bool find( Q const& key )
{
return contains( key );
return find_value( key, typename wrapped_ordered_list::template make_compare_from_less<Less>() );
}
//@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 );