Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • extensions/dune-polygongrid
1 result
Show changes
Commits on Source (3)
......@@ -21,6 +21,10 @@ ubuntu:20.04:
debian:11--headercheck:
image: registry.dune-project.org/docker/ci/debian:11
script:
- DUNECI_CMAKE_FLAGS="-DENABLE_HEADERCHECK=ON"
- duneci-install-module https://gitlab.dune-project.org/extensions/dune-polygongrid.git
- cd /duneci/modules/dune-polygongrid/build-cmake
- make headercheck
variables:
DUNECI_TOOLCHAIN: gcc-10-20
tags: [duneci]
#ifndef DUNE_POLYGONGRID_ITERATORTAGS_HH
#define DUNE_POLYGONGRID_ITERATORTAGS_HH
#include <iterator>
#include <cstddef>
#include <utility>
namespace Dune
{
......@@ -80,14 +81,24 @@ namespace Dune
element_type element_;
};
namespace detail {
template <class Category, class T, class Distance = ptrdiff_t,
class Pointer = T*, class Reference = T&>
struct std_iterator {
typedef T value_type;
typedef Distance difference_type;
typedef Pointer pointer;
typedef Reference reference;
typedef Category iterator_category;
};
}
// VirtualIterator
// ---------------
template< class C, class T, class D = std::ptrdiff_t, class R = T >
using VirtualIterator = std::iterator< C, T, D, Envelope< R >, R >;
using VirtualIterator = detail::std_iterator< C, T, D, Envelope< R >, R >;
} // namespace __PolygonGrid
......