Define member type Slice<T>::value_type = T

This commit is contained in:
David Tolnay 2020-12-27 19:38:43 -08:00
parent e47a4d94d0
commit f62458f075
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@
template <typename T>
class Slice final {
public:
using value_type = T;
Slice() noexcept;
Slice(const Slice<T> &) noexcept;
Slice(T *, size_t count) noexcept;

View File

@ -147,6 +147,8 @@ template <typename T>
class Slice final
: private detail::copy_assignable_if<std::is_const<T>::value> {
public:
using value_type = T;
Slice() noexcept;
Slice(T *, std::size_t count) noexcept;