X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=cds%2Fcontainer%2Fcuckoo_set.h;h=8c24b107ab922b479a1486c19c2429bf60119733;hp=6b90d127f95b8ea368dec69cdcb43bac427cfe2a;hb=bab1583cb2db30355c138a507943cd5ad068ccf4;hpb=97833f7d4af21c992583b650232af8a8c852064c diff --git a/cds/container/cuckoo_set.h b/cds/container/cuckoo_set.h index 6b90d127..8c24b107 100644 --- a/cds/container/cuckoo_set.h +++ b/cds/container/cuckoo_set.h @@ -28,15 +28,10 @@ namespace cds { namespace container { : m_val(v) {} -# ifdef CDS_EMPLACE_SUPPORT template node_type( Args&&... args ) : m_val( std::forward(args)...) {} -# else - node_type() - {} -# endif }; struct value_accessor { @@ -401,13 +396,11 @@ namespace cds { namespace container { { return cxx_node_allocator().New( v ); } -# ifdef CDS_EMPLACE_SUPPORT template static node_type * alloc_node( Args&&... args ) { return cxx_node_allocator().MoveNew( std::forward(args)... ); } -# endif static void free_node( node_type * pNode ) { @@ -623,13 +616,9 @@ namespace cds { namespace container { return false; } -# ifdef CDS_EMPLACE_SUPPORT /// Inserts data of type \ref value_type constructed with std::forward(args)... /** Returns \p true if inserting successful, \p false otherwise. - - This function is available only for compiler that supports - variadic template and move semantics */ template bool emplace( Args&&... args ) @@ -641,7 +630,6 @@ namespace cds { namespace container { } return false; } -# endif /// Ensures that the \p val exists in the set /**