projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd90c45
)
Minor improvements related to boost::intrusive containers
author
khizmax
<libcds.dev@gmail.com>
Sun, 20 Mar 2016 21:23:39 +0000
(
00:23
+0300)
committer
khizmax
<libcds.dev@gmail.com>
Sun, 20 Mar 2016 21:23:39 +0000
(
00:23
+0300)
cds/intrusive/striped_set/adapter.h
patch
|
blob
|
history
diff --git
a/cds/intrusive/striped_set/adapter.h
b/cds/intrusive/striped_set/adapter.h
index 2f416cc7e9140e21e281e686bf108d4b4f248890..3155c1f5d9e7192b07ea52a8a69483df6f979be0 100644
(file)
--- a/
cds/intrusive/striped_set/adapter.h
+++ b/
cds/intrusive/striped_set/adapter.h
@@
-255,7
+255,7
@@
namespace cds { namespace intrusive {
return std::make_pair( true, res.second );
}
else {
- auto it = m_Set.find( val );
+ auto it = m_Set.find( val
, key_comparator()
);
if ( it == m_Set.end() )
return std::make_pair( false, false );
f( false, *it, val );
@@
-265,7
+265,7
@@
namespace cds { namespace intrusive {
bool unlink( value_type& val )
{
- iterator it = m_Set.find( val
ue_type(val)
);
+ iterator it = m_Set.find( val
, key_comparator()
);
if ( it == m_Set.end() || &(*it) != &val )
return false;
m_Set.erase( it );