diff options
author | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-17 10:18:24 -0800 |
---|---|---|
committer | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-17 12:03:17 -0800 |
commit | 558a753d3da5a2243a74b8d4e1c24044bdfb5c2e (patch) | |
tree | 391052b070b0965e5a73d27c204089c042499275 /fpga_interchange/arch.h | |
parent | 9e0ca7282743afd6a17fe347c1ad3a5d1cd4070d (diff) | |
download | nextpnr-558a753d3da5a2243a74b8d4e1c24044bdfb5c2e.tar.gz nextpnr-558a753d3da5a2243a74b8d4e1c24044bdfb5c2e.tar.bz2 nextpnr-558a753d3da5a2243a74b8d4e1c24044bdfb5c2e.zip |
Refactor "get only from iterator" to a utility.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'fpga_interchange/arch.h')
-rw-r--r-- | fpga_interchange/arch.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fpga_interchange/arch.h b/fpga_interchange/arch.h index 556aa566..1daf5526 100644 --- a/fpga_interchange/arch.h +++ b/fpga_interchange/arch.h @@ -656,7 +656,11 @@ struct BelPinRange BelPinIterator end() const { return e; } }; -struct IdStringIterator +struct IdStringIterator : std::iterator<std::forward_iterator_tag, + /*T=*/IdString, + /*Distance=*/ptrdiff_t, + /*pointer=*/IdString *, + /*reference=*/IdString> { const int32_t *cursor; |