Skip to content

Commit

Permalink
Merge pull request #12982 from peterrum/CollectionIterator_trait
Browse files Browse the repository at this point in the history
Add iterator traits to hp::CollectionIterator
  • Loading branch information
drwells committed Nov 23, 2021
2 parents fb4e37e + ee17381 commit 8c21111
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/deal.II/hp/collection.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,4 +293,18 @@ namespace hp

DEAL_II_NAMESPACE_CLOSE

namespace std
{
/**
* Iterator traits for hp::CollectionIterator.
*/
template <class T>
struct iterator_traits<dealii::hp::CollectionIterator<T>>
{
using iterator_category = random_access_iterator_tag;
using value_type = T;
using difference_type = std::ptrdiff_t;
};
} // namespace std

#endif

0 comments on commit 8c21111

Please sign in to comment.