From: khizmax Date: Sun, 22 Feb 2015 19:01:51 +0000 (+0300) Subject: Changed docs X-Git-Tag: v2.1.0~305^2~52 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=503ffd95133b7338a03b870beb98bfb504bb2331;p=libcds.git Changed docs --- diff --git a/cds/container/bronson_avltree_map_rcu.h b/cds/container/bronson_avltree_map_rcu.h index 532877ef..f5c6b603 100644 --- a/cds/container/bronson_avltree_map_rcu.h +++ b/cds/container/bronson_avltree_map_rcu.h @@ -236,7 +236,7 @@ namespace cds { namespace container { The operation performs inserting or changing data with lock-free manner. If the \p key not found in the map, then the new item created from \p key - is inserted into the map (note that in this case the \ref key_type should be + will be inserted into the map (note that in this case the \ref key_type should be constructible from type \p K). Otherwise, the functor \p func is called with item found. The functor \p Func may be a functor: @@ -256,7 +256,7 @@ namespace cds { namespace container { Returns std::pair where \p first is \p true if operation is successfull, \p second is \p true if new item has been added or \p false if the item with \p key - already is in the tree. + already exists. */ template std::pair update( K const& key, Func func ) diff --git a/cds/container/impl/bronson_avltree_map_rcu.h b/cds/container/impl/bronson_avltree_map_rcu.h index 5456b9e5..a314847f 100644 --- a/cds/container/impl/bronson_avltree_map_rcu.h +++ b/cds/container/impl/bronson_avltree_map_rcu.h @@ -265,15 +265,15 @@ namespace cds { namespace container { If \p bInsert is \p false, only updating of existing node is possible. If \p key is not found and inserting is allowed (i.e. \p bInsert is \p true), - then the new node created from \p key is inserted into the map; note that in this case the \ref key_type should be + then the new node created from \p key will be inserted into the map; note that in this case the \ref key_type should be constructible from type \p K. - Otherwise, the value is changed to \p pVal. + Otherwise, the value for \p key will be changed to \p pVal. RCU \p synchronize() method can be called. RCU should not be locked. Returns std::pair where \p first is \p true if operation is successfull, \p second is \p true if new node has been added or \p false if the node with \p key - already is in the tree. + already exists. */ template std::pair update( K const& key, mapped_type pVal, bool bInsert = true )