X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=cds%2Fcontainer%2Fsplit_list_set.h;h=cfbe04bdb731c012d12eec89b03dc83a2799edf6;hp=ff176fd8b350c908cf9b464422e7e2900dd2da15;hb=bab1583cb2db30355c138a507943cd5ad068ccf4;hpb=97833f7d4af21c992583b650232af8a8c852064c diff --git a/cds/container/split_list_set.h b/cds/container/split_list_set.h index ff176fd8..cfbe04bd 100644 --- a/cds/container/split_list_set.h +++ b/cds/container/split_list_set.h @@ -192,13 +192,11 @@ namespace cds { namespace container { # endif } -# 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 ) { @@ -483,20 +481,15 @@ namespace cds { namespace container { return false; } -# ifdef CDS_EMPLACE_SUPPORT /// Inserts data of type \p %value_type constructed with std::forward(args)... /** Returns \p true if inserting successful, \p false otherwise. - - @note This function is available only for compiler that supports - variadic template and move semantics */ template bool emplace( Args&&... args ) { return insert_node( alloc_node( std::forward(args)...)); } -# endif /// Ensures that the \p item exists in the set /**