From f204d43333b270966c91e1ea0848ff8e92602d6d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 19 May 2020 16:00:59 -0400 Subject: [PATCH] rstl: Make iterator tag use std::contiguous_iterator_tag Given we're iterating over a contiguous sequence with iterators like these, we can use the contiguous_iterator_tag introduced within C++20 to signify this. --- Runtime/rstl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/rstl.hpp b/Runtime/rstl.hpp index 223211513..5d0f7bf53 100644 --- a/Runtime/rstl.hpp +++ b/Runtime/rstl.hpp @@ -34,7 +34,7 @@ public: using difference_type = std::ptrdiff_t; using pointer = T*; using reference = T&; - using iterator_category = std::random_access_iterator_tag; + using iterator_category = std::contiguous_iterator_tag; const T& operator*() const { return *m_val; } const T* operator->() const { return m_val; }