38# include <gtest/gtest.h>
43using namespace testing;
97 ASSERT_EQ(list.get_next()->get_next(), &n2);
98 ASSERT_EQ(list.get_next()->get_next()->get_next(), &n3);
99 ASSERT_EQ(list.get_next()->get_next()->get_next()->get_next(), &n4);
100 ASSERT_EQ(list.get_next()->get_next()->get_next()->get_next()->get_next(), &n5);
T & insert(const T &item)
constexpr bool is_empty() const noexcept
void reset_first() noexcept
Reset the iterator to the first link on the list.
bool has_curr() const noexcept
Return true if the iterator is positioned on a valid link.
Slinknc * get_curr() const
Link of a single linked list non-circular and without header node.
constexpr bool is_empty() const noexcept
Return true if this is empty.
void insert(Slinknc *p) noexcept
insert(p) inserts the node pointed by p after this.
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(Slinknc_of_5_items, Complex_operations)