X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=cds%2Fcontainer%2Flazy_list_rcu.h;h=738e50426c36e3e5dfe68ed2284027dbe809532f;hb=40e34e6d0b104b6f5aff506ad67d43fd410e52bc;hp=fa7e6eac60fd7c205bd42ae8bbf356543b3b198f;hpb=305da3404a293d5e5c4e76eb6660eeda5a7d4413;p=libcds.git diff --git a/cds/container/lazy_list_rcu.h b/cds/container/lazy_list_rcu.h index fa7e6eac..738e5042 100644 --- a/cds/container/lazy_list_rcu.h +++ b/cds/container/lazy_list_rcu.h @@ -1,7 +1,7 @@ /* This file is a part of libcds - Concurrent Data Structures library - (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016 + (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017 Source code repo: http://github.com/khizmax/libcds/ Download: http://sourceforge.net/projects/libcds/files/ @@ -267,7 +267,7 @@ namespace cds { namespace container { */ iterator begin() { - iterator it( head() ); + iterator it( head()); ++it ; // skip dummy head node return it; } @@ -281,13 +281,13 @@ namespace cds { namespace container { */ iterator end() { - return iterator( tail() ); + return iterator( tail()); } /// Returns a forward const iterator addressing the first element in a list const_iterator begin() const { - const_iterator it( head() ); + const_iterator it( head()); ++it ; // skip dummy head node return it; } @@ -295,7 +295,7 @@ namespace cds { namespace container { /// Returns a forward const iterator addressing the first element in a list const_iterator cbegin() const { - const_iterator it( head() ); + const_iterator it( head()); ++it ; // skip dummy head node return it; } @@ -303,13 +303,13 @@ namespace cds { namespace container { /// Returns an const iterator that addresses the location succeeding the last element in a list const_iterator end() const { - return const_iterator( tail() ); + return const_iterator( tail()); } /// Returns an const iterator that addresses the location succeeding the last element in a list const_iterator cend() const { - return const_iterator( tail() ); + return const_iterator( tail()); } //@} @@ -578,7 +578,7 @@ namespace cds { namespace container { template bool contains( Q const& key ) const { - return find_at( head(), key, intrusive_key_comparator() ); + return find_at( head(), key, intrusive_key_comparator()); } //@cond template @@ -599,7 +599,7 @@ namespace cds { namespace container { bool contains( Q const& key, Less pred ) const { CDS_UNUSED( pred ); - return find_at( head(), key, typename maker::template less_wrapper::type() ); + return find_at( head(), key, typename maker::template less_wrapper::type()); } //@cond template @@ -785,7 +785,7 @@ namespace cds { namespace container { { scoped_node_ptr pNode( alloc_node( std::forward( key ))); - if ( base_class::insert_at( &refHead, *pNode, [&f](node_type& node){ f( node_to_value(node) ); } )) { + if ( base_class::insert_at( &refHead, *pNode, [&f](node_type& node){ f( node_to_value(node)); } )) { pNode.release(); return true; } @@ -795,7 +795,7 @@ namespace cds { namespace container { template bool erase_at( head_type& refHead, Q const& key, Compare cmp, Func f ) { - return base_class::erase_at( &refHead, key, cmp, [&f](node_type const& node){ f( node_to_value(node) ); } ); + return base_class::erase_at( &refHead, key, cmp, [&f](node_type const& node){ f( node_to_value(node)); } ); } template