◆ difference_type
template<typename T, typename Allocator = std::allocator<T>>
| using forward_lists< T, Allocator >::Iterator::difference_type = std::ptrdiff_t |
◆ iterator_category
template<typename T, typename Allocator = std::allocator<T>>
| using forward_lists< T, Allocator >::Iterator::iterator_category = std::forward_iterator_tag |
iterator category iterator category adalah label yang menjelaskan kemampuan sebuah
Iterator traits
- iterator_category
traits ini adalah menandakan kemampuan sebuah iterator pada forward_list kita memakai forward_iterator dikarenakan singly linked list hanya punya pointer next yang memunkinkan node hanya bisa bergerak maju
- value_type traits ini adalah type data yg digunakan oleh forward_list karena sudah ada Template,maka kita dapat langsung memakai Templates tersebut
- difference_type tipe integer untuk menyatakan selisih dua iterator,ini dipakai pada std::distance untuk menghitung banyak node diantara 2 iterator
- using pointer = T*; tipe pointer ke elemen yang ditunjuk iterator
- using reference = T&; tipe referensi ke elemen,Memungkinkan penggunaan *it untuk mengakses elemen.
◆ pointer
template<typename T, typename Allocator = std::allocator<T>>
◆ reference
template<typename T, typename Allocator = std::allocator<T>>
◆ value_type
template<typename T, typename Allocator = std::allocator<T>>
◆ Iterator()
template<typename T, typename Allocator = std::allocator<T>>
◆ get_raw()
template<typename T, typename Allocator = std::allocator<T>>
◆ operator!=()
template<typename T, typename Allocator = std::allocator<T>>
◆ operator*() [1/2]
template<typename T, typename Allocator = std::allocator<T>>
◆ operator*() [2/2]
template<typename T, typename Allocator = std::allocator<T>>
◆ operator++() [1/2]
template<typename T, typename Allocator = std::allocator<T>>
◆ operator++() [2/2]
template<typename T, typename Allocator = std::allocator<T>>
◆ operator->() [1/2]
template<typename T, typename Allocator = std::allocator<T>>
◆ operator->() [2/2]
template<typename T, typename Allocator = std::allocator<T>>
◆ operator==()
template<typename T, typename Allocator = std::allocator<T>>
◆ operator<<
template<typename T, typename Allocator = std::allocator<T>>
| std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const Iterator & | it ) |
|
friend |
◆ node
template<typename T, typename Allocator = std::allocator<T>>
The documentation for this class was generated from the following file: