refactor: Allow CScript construction from any std::input_iterator

Also, remove the value_type alias, which is not needed when element_type
is present.
This commit is contained in:
MarcoFalke
2024-02-02 11:35:23 +01:00
parent 66114cd45b
commit d444441900
2 changed files with 3 additions and 5 deletions

View File

@@ -50,7 +50,6 @@ public:
T* ptr{};
public:
typedef Diff difference_type;
typedef T value_type;
typedef T* pointer;
typedef T& reference;
using element_type = T;
@@ -102,7 +101,6 @@ public:
const T* ptr{};
public:
typedef Diff difference_type;
typedef const T value_type;
typedef const T* pointer;
typedef const T& reference;
using element_type = const T;