38# include <gtest/gtest.h>
42using namespace testing;
85 ASSERT_EQ(list.get_next()->get_data(), 1);
94 auto ptr = list.remove_first();
98 EXPECT_EQ(list.get_next()->get_data(), 1);
Dlink * remove_next() noexcept
Remove the item that is after this
void insert(Dlink *node) noexcept
Insert node after this.
Link of a single linked list non-circular and without header node.
Snodenc< T > * to_snodenc() noexcept
Convert this to a Snodenc<T>.
Singly linked list implementations with head-tail access.
Main namespace for Aleph-w library functions.
Divide_Conquer_DP_Result< Cost > divide_and_conquer_partition_dp(const size_t groups, const size_t n, Transition_Cost_Fn transition_cost, const Cost inf=dp_optimization_detail::default_inf< Cost >())
Optimize partition DP using divide-and-conquer optimization.
TEST_F(List_of_5_nodes, Basic_operations)