The Sparta Modeling Framework
Loading...
Searching...
No Matches
IteratorTraits.hpp
Go to the documentation of this file.
1// <IteratorTraits.hpp> -*- C++ -*-
2
8#pragma once
9
10namespace sparta::utils
11{
12 // C++17 deprecates the `std::iterator` in lieu of developers
13 // being explicit on their trait types for defining their own
14 // iterators. For Sparta, we'll put 'em back.
15 template<class category, class T>
17 using difference_type = long;
18 using value_type = T;
19 using pointer = const T*;
20 using reference = const T&;
21 using iterator_category = category;
22 };
23
24}