mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 07:10:29 +00:00
Define member type Slice<T>::value_type = T
This commit is contained in:
parent
e47a4d94d0
commit
f62458f075
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user