ICU4X
International Components for Unicode
|
Helper template enabling native iteration over unique ptrs to objects which implement next() More...
#include <diplomat_runtime.hpp>
Public Types | |
using | next_type = decltype(std::declval<T>().next()) |
using | value_type = typename inner<next_type>::type |
using | difference_type = void |
using | reference = std::add_lvalue_reference_t<value_type> |
using | iterator_category = std::input_iterator_tag |
Public Member Functions | |
next_to_iter_helper (std::unique_ptr< T > &&ptr) | |
next_to_iter_helper (const next_to_iter_helper &o) | |
void | operator++ () |
void | operator++ (int) |
const value_type & | operator* () const |
bool | operator!= (std::nullopt_t) |
Public Attributes | |
std::shared_ptr< T > | _ptr |
next_type | _curr |
Helper template enabling native iteration over unique ptrs to objects which implement next()
using diplomat::next_to_iter_helper< T >::difference_type = void |
using diplomat::next_to_iter_helper< T >::iterator_category = std::input_iterator_tag |
using diplomat::next_to_iter_helper< T >::next_type = decltype(std::declval<T>().next()) |
using diplomat::next_to_iter_helper< T >::reference = std::add_lvalue_reference_t<value_type> |
using diplomat::next_to_iter_helper< T >::value_type = typename inner<next_type>::type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
next_type diplomat::next_to_iter_helper< T >::_curr |
std::shared_ptr<T> diplomat::next_to_iter_helper< T >::_ptr |