summaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/libcxx/include/span
diff options
context:
space:
mode:
authormikhnenko <[email protected]>2023-11-30 19:30:11 +0300
committermikhnenko <[email protected]>2023-11-30 21:58:14 +0300
commitf5d4e4495f6741d8df199dc9f888417ab0485010 (patch)
tree658aed141d6b671f9fbd56cc448b2f412e30951e /contrib/libs/cxxsupp/libcxx/include/span
parent2f7d8b6e692bd7584a66686b5504381631dd4522 (diff)
Remove unused patches
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/include/span')
-rw-r--r--contrib/libs/cxxsupp/libcxx/include/span14
1 files changed, 4 insertions, 10 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/span b/contrib/libs/cxxsupp/libcxx/include/span
index 1ebe34d0901..00793a210cb 100644
--- a/contrib/libs/cxxsupp/libcxx/include/span
+++ b/contrib/libs/cxxsupp/libcxx/include/span
@@ -586,23 +586,17 @@ public:
_LIBCPP_INLINE_VISIBILITY constexpr reverse_iterator rbegin() const noexcept { return reverse_iterator(end()); }
_LIBCPP_INLINE_VISIBILITY constexpr reverse_iterator rend() const noexcept { return reverse_iterator(begin()); }
- inline _LIBCPP_INLINE_VISIBILITY span<const byte, dynamic_extent> __as_bytes() const noexcept;
+ _LIBCPP_INLINE_VISIBILITY span<const byte, dynamic_extent> __as_bytes() const noexcept
+ { return {reinterpret_cast<const byte *>(data()), size_bytes()}; }
- inline _LIBCPP_INLINE_VISIBILITY span<byte, dynamic_extent> __as_writable_bytes() const noexcept;
+ _LIBCPP_INLINE_VISIBILITY span<byte, dynamic_extent> __as_writable_bytes() const noexcept
+ { return {reinterpret_cast<byte *>(data()), size_bytes()}; }
private:
pointer __data;
size_type __size;
};
-template<typename _Tp>
-inline _LIBCPP_INLINE_VISIBILITY span<const byte, dynamic_extent> span<_Tp, dynamic_extent>::__as_bytes() const noexcept
-{ return {reinterpret_cast<const byte *>(data()), size_bytes()}; }
-
-template<typename _Tp>
-inline _LIBCPP_INLINE_VISIBILITY span<byte, dynamic_extent> span<_Tp, dynamic_extent>::__as_writable_bytes() const noexcept
-{ return {reinterpret_cast<byte *>(data()), size_bytes()}; }
-
template <class _Tp, size_t _Extent>
inline constexpr bool ranges::enable_borrowed_range<span<_Tp, _Extent> > = true;