sal/data/list.h

operator<<
List
kth_last
insert
insert_after
append
erase
remove_dup
print
Basic_list_node

operator<<

Declaration

template <typename Node>
std::ostream& operator<<(std::ostream& os, const List<Node>& l);

Parameters

os
l

Return value

Example

Discussion

List

Declaration

List(T d);

Parameters

d

Return value

Example

Discussion

kth_last | List::kth_last

Declaration

NP kth_last(size_t k);

Parameters

k

Return value

Example

Discussion

insert | List::insert

Declaration

void insert(T d);

void insert(NP node);

Parameters

d
node

Return value

Example

Discussion

insert_after | List::insert_after

Declaration

void insert_after(T d, NP prev);

void insert_after(NP node, NP prev);

Parameters

d
prev
node

Return value

Example

Discussion

append | List::append

Declaration

void append(T d);

void append(NP node);

Parameters

d
node

Return value

Example

Discussion

erase | List::erase

Declaration

void erase(T d);

Parameters

d

Return value

Example

Discussion

remove_dup | List::remove_dup

Declaration

void remove_dup();

Return value

Example

Discussion

print | List::print

Declaration

template <typename TT>
void print() const;

Return value

Example

Discussion

Basic_list_node

Declaration

Basic_list_node(T d);

Parameters

d

Return value

Example

Discussion