From e5ae73a7362feba972761fd0da0193a2c42610fc Mon Sep 17 00:00:00 2001 From: khizmax Date: Fri, 2 Jan 2015 17:11:09 +0300 Subject: [PATCH] fix typo --- cds/intrusive/details/ellen_bintree_base.h | 4 +--- cds/opt/value_cleaner.h | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/cds/intrusive/details/ellen_bintree_base.h b/cds/intrusive/details/ellen_bintree_base.h index 20497819..99dae529 100644 --- a/cds/intrusive/details/ellen_bintree_base.h +++ b/cds/intrusive/details/ellen_bintree_base.h @@ -8,8 +8,6 @@ #include #include #include -#include -#include namespace cds { namespace intrusive { @@ -546,7 +544,7 @@ namespace cds { namespace intrusive { - \p opt::less - specifies binary predicate used for key compare. At least \p %opt::compare or \p %opt::less should be defined. - \p opt::disposer - the functor used for dispose removed nodes. Default is \p opt::v::empty_disposer. Due the nature of GC schema the disposer may be called asynchronously. The disposer is used only for leaf nodes. - - \p opt::item_counter - the type of item counting feature, by defaulr it is disabled (\p atomicity::empty_item_counter) + - \p opt::item_counter - the type of item counting feature, by default it is disabled (\p atomicity::empty_item_counter) To enable it use \p atomicity::item_counter - \p opt::memory_model - C++ memory ordering model. Can be \p opt::v::relaxed_ordering (relaxed memory model, the default) or \p opt::v::sequential_consistent (sequentially consisnent memory model). diff --git a/cds/opt/value_cleaner.h b/cds/opt/value_cleaner.h index 560498d2..c7c95565 100644 --- a/cds/opt/value_cleaner.h +++ b/cds/opt/value_cleaner.h @@ -12,7 +12,7 @@ namespace cds { namespace opt { The cleaner is a functor called when an item is removed from a container. Note, the cleaner should not delete (deallocate) the value \p val passed in. However, if the \p value_type type is a structure that contains dynamically allocated - field(s), the cleaning functor may deallocate it and iniitalize to default value (usually, \p nullptr). + field(s), the cleaning functor may deallocate it and initialize to default value (usually, \p nullptr). The interface for type \p value_type is: \code @@ -70,7 +70,6 @@ namespace cds { namespace opt { }; } // namespace v - }} // namespace cds::opt #endif // #ifndef __CDS_OPT_ITEM_DISPOSER_H -- 2.34.1