38# include <gtest/gtest.h>
42using namespace testing;
56 const Dlink * ptr = &node;
85 EXPECT_EQ(list.get_next()->get_data(), 1);
86 EXPECT_EQ(list.get_prev()->get_data(), 5);
90 EXPECT_EQ(it.get_curr()->to_data<
int>(), i);
92 auto ptr = list.remove_first();
96 EXPECT_EQ(list.get_next()->get_data(), 1);
bool has_curr() const noexcept
Return true if the iterator has current item.
Doubly linked circular list node.
Dlink * remove_next() noexcept
Remove the item that is after this
Dnode< T > * to_dnode() noexcept
void insert(Dlink *node) noexcept
Insert node after this.
Iterator on a list of Dnode objects.
Node belonging to a double circular linked list with header node.
TEST_F(List_of_5_nodes, Basic_operations)
Main namespace for Aleph-w library functions.
DynList< T > maps(const C &c, Op op)
Classic map operation.
Doubly linked list node with typed data.