From: khizmax Date: Sun, 14 Feb 2016 09:17:46 +0000 (+0300) Subject: Docfix X-Git-Tag: v2.2.0~392 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ed4b0131d04fd2fb8944a95e95814d4d3aa3091e;p=libcds.git Docfix --- diff --git a/cds/container/lazy_list_nogc.h b/cds/container/lazy_list_nogc.h index a2644245..2ffe636c 100644 --- a/cds/container/lazy_list_nogc.h +++ b/cds/container/lazy_list_nogc.h @@ -217,6 +217,8 @@ namespace cds { namespace container { //@endcond public: + ///@name Forward iterators + //@{ /// Returns a forward iterator addressing the first element in a list /** For empty list \code begin() == end() \endcode @@ -253,32 +255,33 @@ 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 node 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 node 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_list_nogc.h b/cds/container/michael_list_nogc.h index 12badc98..c6bd1fd1 100644 --- a/cds/container/michael_list_nogc.h +++ b/cds/container/michael_list_nogc.h @@ -222,6 +222,8 @@ namespace cds { namespace container { //@endcond public: + ///@name Forward iterators + //@{ /// Returns a forward iterator addressing the first element in a list /** For empty list \code begin() == end() \endcode @@ -257,28 +259,29 @@ 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 @@ -323,7 +326,6 @@ namespace cds { namespace container { /// Updates the item /** If \p key is not in the list and \p bAllowInsert is \p true, - the function inserts a new item. Otherwise, the function returns an iterator pointing to the item found.