From: khizmax Date: Wed, 17 Feb 2016 19:44:45 +0000 (+0300) Subject: Docfix X-Git-Tag: v2.2.0~388 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=845e144edd2feb5c012e2c2b101ca74226ad664c;p=libcds.git Docfix --- diff --git a/cds/container/details/make_lazy_kvlist.h b/cds/container/details/make_lazy_kvlist.h index 2d3a4692..45d75fef 100644 --- a/cds/container/details/make_lazy_kvlist.h +++ b/cds/container/details/make_lazy_kvlist.h @@ -87,7 +87,7 @@ namespace cds { namespace container { template node_type( Ky&& key, Args&&... args ) - : m_Data( std::forward( key ), std::move( mapped_type( std::forward( args )... ) ) ) + : m_Data( key_type( std::forward( key )), std::move( mapped_type( std::forward( args )... ) ) ) {} }; diff --git a/cds/container/impl/michael_kvlist.h b/cds/container/impl/michael_kvlist.h index c1053ee7..805b9c15 100644 --- a/cds/container/impl/michael_kvlist.h +++ b/cds/container/impl/michael_kvlist.h @@ -36,7 +36,7 @@ namespace cds { namespace container { - /// Michael's ordered list fo key-value pair + /// Michael's ordered list for key-value pair /** @ingroup cds_nonintrusive_list \anchor cds_nonintrusive_MichaelKVList_gc diff --git a/cds/container/lazy_kvlist_nogc.h b/cds/container/lazy_kvlist_nogc.h index 104b6400..3f0e9319 100644 --- a/cds/container/lazy_kvlist_nogc.h +++ b/cds/container/lazy_kvlist_nogc.h @@ -240,17 +240,21 @@ namespace cds { namespace container { //@endcond public: + ///@name Forward iterators + //@{ /// Forward iterator /** - The forward iterator for lazy list based on gc::nogc has pre- and post-increment operators. + The forward iterator is safe: you may use it in multi-threaded enviromnent without any synchronization. + + The forward iterator for lazy list based on \p gc::nogc has pre- and post-increment operators. The iterator interface to access item data: - - operator -> - returns a pointer to \ref value_type for iterator - - operator * - returns a reference (a const reference for \p const_iterator) to \ref value_type for iterator + - operator -> - returns a pointer to \p value_type + - operator * - returns a reference (a const reference for \p const_iterator) to \p value_type - const key_type& key() - returns a key reference for iterator - mapped_type& val() - retuns a value reference for iterator (const reference for \p const_iterator) - For both functions the iterator should not be equal to end() + For both functions the iterator should not be equal to \p end() */ typedef iterator_type iterator; @@ -285,32 +289,31 @@ namespace cds { namespace container { } /// Returns a forward const iterator addressing the first element in a list - //@{ const_iterator begin() const { const_iterator it( head() ); ++it ; // skip dummy head return it; } + /// Returns a forward const iterator addressing the first element in a list const_iterator cbegin() const { const_iterator it( head() ); ++it ; // skip dummy head return it; } - //@} /// Returns an const iterator that addresses the location succeeding the last element in a list - //@{ const_iterator end() const { 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()); } - //@} + //@} protected: //@cond diff --git a/cds/container/michael_kvlist_nogc.h b/cds/container/michael_kvlist_nogc.h index 7729fed2..53f71b0b 100644 --- a/cds/container/michael_kvlist_nogc.h +++ b/cds/container/michael_kvlist_nogc.h @@ -257,17 +257,23 @@ namespace cds { namespace container { //@endcond public: + ///@name Forward iterators + //@{ /// Forward iterator /** - The forward iterator for Michael's list based on gc::nogc has pre- and post-increment operators. + The forward iterator is safe: you may use it in multi-threaded enviromnent without any synchronization. + + The forward iterator for Michael's list based on \p gc::nogc has pre- and post-increment operators. The iterator interface to access item data: - - operator -> - returns a pointer to \ref value_type for iterator - - operator * - returns a reference (a const reference for \p const_iterator) to \ref value_type for iterator + - operator -> - returns a pointer to \p value_type + - operator * - returns a reference (a const reference for \p const_iterator) to \p value_type - const key_type& key() - returns a key reference for iterator - mapped_type& val() - retuns a value reference for iterator (const reference for \p const_iterator) - For both functions the iterator should not be equal to end() + For both functions the iterator should not be equal to \p end(). + + @note \p end() iterator is not dereferenceable */ typedef iterator_type iterator; @@ -300,28 +306,27 @@ namespace cds { namespace container { } /// Returns a forward const iterator addressing the first element in a list - //@{ const_iterator begin() const { return const_iterator( head() ); } + /// Returns a forward const iterator addressing the first element in a list const_iterator cbegin() const { return const_iterator( head() ); } - //@} /// Returns an const iterator that addresses the location succeeding the last element in a list - //@{ const_iterator end() const { return const_iterator(); } + /// Returns an const iterator that addresses the location succeeding the last element in a list const_iterator cend() const { return const_iterator(); } - //@} + //@} protected: //@cond