Skip to content
Snippets Groups Projects
Commit 57876825 authored by Steffen Müthing's avatar Steffen Müthing
Browse files

[!257] vbvector.hh: do not use `std::iterator`

Merge branch 'do-not-use-std-iterator' into 'master'

ref:core/dune-istl It was deprecated in C++17.

See merge request [!257]

  [!257]: gitlab.dune-project.org/core/dune-istl/merge_requests/257
parents 9a64dc8c b01e7d47
No related branches found
No related tags found
1 merge request!257vbvector.hh: do not use `std::iterator`
Pipeline #15182 passed
......@@ -435,12 +435,28 @@ namespace Dune {
//! Iterator class for sequential creation of blocks
class CreateIterator
: public std::iterator<std::output_iterator_tag, // iterator category
size_type, // value type
size_type*, // pointer type
SizeProxy> // reference type
{
public:
//! iterator category
using iterator_category = std::output_iterator_tag;
//! value type
using value_type = size_type;
/**
* \brief difference type (unused)
*
* This type is required by the C++ standard, but not used for
* output iterators.
*/
using difference_type = void;
//! pointer type
using pointer = size_type*;
//! reference type
using reference = SizeProxy;
//! constructor
CreateIterator (VariableBlockVector& _v, int _i, bool _isEnd) :
v(_v),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment