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)
Insert a new item by copy.
constexpr bool is_empty() const noexcept
Return true if list is empty.
Iterator on single links.
void reset_first() noexcept
Reset the iterator to the first link on the list.
void next()
Move the iterator one position forward.
bool has_curr() const noexcept
Return true if the iterator is positioned on a valid link.
Slinknc * get_curr() const
Return the current link on which the iterator is positioned.
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 after this
Singly linked list implementations with head-tail access.
Main namespace for Aleph-w library functions.
DynList< T > maps(const C &c, Op op)
Classic map operation.
TEST_F(Slinknc_of_5_items, Complex_operations)