Remove CDS_EMPLACE_SUPPORT macro and unused code
[libcds.git] / cds / container / lazy_list_nogc.h
index 5c08d1f83592faec9f45d0dbea03de6d999d7abe..24bc15526f4eb3144ba757c7399aa02f9f88ea65 100644 (file)
@@ -107,13 +107,11 @@ namespace cds { namespace container {
             return cxx_allocator().New( v );
         }
 
-#   ifdef CDS_EMPLACE_SUPPORT
         template <typename... Args>
         static node_type * alloc_node( Args&&... args )
         {
             return cxx_allocator().MoveNew( std::forward<Args>(args)... );
         }
-#   endif
 
         static void free_node( node_type * pNode )
         {
@@ -323,20 +321,15 @@ namespace cds { namespace container {
             return node_to_iterator( insert_at( head(), val ) );
         }
 
-#   ifdef CDS_EMPLACE_SUPPORT
         /// Inserts data of type \ref value_type constructed with <tt>std::forward<Args>(args)...</tt>
         /**
             Return an iterator pointing to inserted item if success \ref end() otherwise
-
-            This function is available only for compiler that supports
-            variadic template and move semantics
         */
         template <typename... Args>
         iterator emplace( Args&&... args )
         {
             return node_to_iterator( emplace_at( head(), std::forward<Args>(args)... ));
         }
-#   endif
 
         /// Ensures that the item \p val exists in the list
         /**
@@ -425,13 +418,12 @@ namespace cds { namespace container {
             return insert_node_at( refHead, alloc_node( val ));
         }
 
-#   ifdef CDS_EMPLACE_SUPPORT
         template <typename... Args>
         node_type * emplace_at( head_type& refHead, Args&&... args )
         {
             return insert_node_at( refHead, alloc_node( std::forward<Args>(args)... ));
         }
-#   endif
+
         template <typename Q>
         std::pair< node_type *, bool > ensure_at( head_type& refHead, Q const& val )
         {