45 for (
auto i = 0; i < n; ++i)
54 for (
auto i = 1; i < n; ++i)
61 Node::Iterator it(list);
62 for (
auto i = 0; i < n; ++i)
69 for (Node::Iterator it(p); it.has_curr(); it.next())
70 out << it.get_curr()->get_data() <<
" ";
75int main(
int argc,
char *argv[])
79 cout <<
"usage: " << argv[0] <<
" n m i" << endl
81 <<
"Where n: number of items of big list" << endl
82 <<
" m: number of items of sublist to be inserted" << endl
83 <<
" i: position where the sublist will be inserted" << endl;
87 size_t n = atoi(argv[1]);
88 size_t m = atoi(argv[2]);
89 size_t i = atoi(argv[3]);
97 list->remove_all_and_delete();
WeightedDigraph::Node Node
size_t size_t int32_t * out
void append(Dlink *node) noexcept
Insert node before this.
Node belonging to a double circular linked list with header node.
void exit(const char *file, int line, const char *format,...)
Print a message and exit the program.
std::ostream & operator<<(std::ostream &osObject, const Field< T > &rightOp)
FooMap m(5, fst_unit_pair_hash, snd_unit_pair_hash)
Node * create_list_with_header(size_t n)
Node * create_list_without_header(size_t n)
Node * access(Node *list, size_t n)
Doubly linked list node with typed data.