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
10
namespace
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>
16
struct
IteratorTraits
{
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
}
sparta::utils::IteratorTraits
Definition
IteratorTraits.hpp:16
sparta
utils
IteratorTraits.hpp
Generated on Mon Nov 11 2024 22:59:37 for The Sparta Modeling Framework by
1.9.8