adapter: remove std::iterator due to deprecation
This commit is contained in:
parent
77071e3334
commit
013fd2bb61
16
adapter.hpp
16
adapter.hpp
@ -192,20 +192,16 @@ namespace cruft::adapter {
|
|||||||
/// corresponds to the underlying iterator::value_type when
|
/// corresponds to the underlying iterator::value_type when
|
||||||
/// dereferenced.
|
/// dereferenced.
|
||||||
template <size_t I, typename IteratorT>
|
template <size_t I, typename IteratorT>
|
||||||
struct scalar : public std::iterator<
|
struct scalar {
|
||||||
typename std::iterator_traits<IteratorT>::iterator_category,
|
public:
|
||||||
typename std::tuple_element<
|
using iterator_category = typename std::iterator_traits<IteratorT>::iterator_category;
|
||||||
|
using value_type = typename std::tuple_element<
|
||||||
I,
|
I,
|
||||||
typename std::iterator_traits<
|
typename std::iterator_traits<
|
||||||
IteratorT
|
IteratorT
|
||||||
>::value_type
|
>::value_type
|
||||||
>::type,
|
>::type;
|
||||||
typename std::iterator_traits<IteratorT>::difference_type
|
using difference_type = typename std::iterator_traits<IteratorT>::difference_type;
|
||||||
> {
|
|
||||||
public:
|
|
||||||
using inner_type = typename std::iterator_traits<IteratorT>::value_type;
|
|
||||||
|
|
||||||
using value_type = decltype (std::get<I> (std::declval<inner_type> ()));
|
|
||||||
using reference = value_type&;
|
using reference = value_type&;
|
||||||
using const_reference = value_type const&;
|
using const_reference = value_type const&;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user