Merge pull request #321 from lioncash/contiguous

rstl: Make iterator tag use std::contiguous_iterator_tag
This commit is contained in:
Luke Street 2020-05-22 03:43:50 -04:00 committed by GitHub
commit 07bb2d74b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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; }