|
KTL
|
Wraps an iterator to return an index along with the value. More...
#include <ipair.h>
Public Types | |
| using | value_type = ipair_value< K, V > |
| using | pointer = value_type * |
| using | reference = value_type & |
Public Member Functions | |
| ipair_iterator (I &&iterator) noexcept(std::is_nothrow_default_constructible_v< K > &&std::is_nothrow_move_constructible_v< I >) | |
| value_type | operator* () const noexcept(std::is_nothrow_constructible_v< value_type, K, I > &&noexcept(*std::declval< I & >())) |
| value_type | operator-> () const noexcept(std::is_nothrow_constructible_v< value_type, K, I > &&noexcept(*std::declval< I & >())) |
| ipair_iterator & | operator++ () noexcept(noexcept(++std::declval< K & >()) &&noexcept(++std::declval< I & >())) |
| template<typename IT = I> | |
| std::enable_if_t< std::is_copy_constructible_v< ipair_iterator< K, IT > >, ipair_iterator > | operator++ (int) noexcept(std::is_nothrow_copy_constructible_v< ipair_iterator > &&noexcept(++std::declval< K & >()) &&noexcept(++std::declval< I & >())) |
| template<typename IT = I> | |
| std::enable_if_t< detail::is_decrementable_v< IT >, ipair_iterator & > | operator-- () noexcept(noexcept(--std::declval< K & >()) &&noexcept(--std::declval< I & >())) |
| template<typename IT = I> | |
| std::enable_if_t< std::is_copy_constructible_v< ipair_iterator< K, IT > > &&detail::is_decrementable_v< IT >, ipair_iterator > | operator-- (int) noexcept(std::is_nothrow_copy_constructible_v< ipair_iterator > &&noexcept(--std::declval< K & >()) &&noexcept(--std::declval< I & >())) |
| bool | operator== (const ipair_iterator &b) const noexcept(noexcept(std::declval< const I & >()==std::declval< const I & >())) |
| bool | operator!= (const ipair_iterator &b) const noexcept(noexcept(std::declval< const I & >() !=std::declval< const I & >())) |
Wraps an iterator to return an index along with the value.
| K | The index typ |
| I | The iterator type |
| using ktl::ipair_iterator< K, I >::pointer = value_type* |
| using ktl::ipair_iterator< K, I >::reference = value_type& |
| using ktl::ipair_iterator< K, I >::value_type = ipair_value<K, V> |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |