deduction guides for std::mdspan
在标头 <mdspan> 定义
|
||
template< class CArray > requires(std::is_array_v<CArray> && std::rank_v<CArray> == 1) |
(1) | (C++23 起) |
template< class Pointer > requires(std::is_pointer_v<std::remove_reference_t<Pointer>>) |
(2) | (C++23 起) |
template< class ElementType, class... Integrals > requires((std::is_convertible_v<Integrals, std::size_t> && ...) && |
(3) | (C++23 起) |
template< class ElementType, class OtherIndexType, std::size_t N > mdspan( ElementType*, std::span<OtherIndexType, N> ) |
(4) | (C++23 起) |
template< class ElementType, class OtherIndexType, std::size_t N > mdspan( ElementType*, const std::array<OtherIndexType, N>& ) |
(5) | (C++23 起) |
template< class ElementType, class IndexType, std::size_t... ExtentsPack > mdspan( ElementType*, const std::extents<IndexType, ExtentsPack...>& ) |
(6) | (C++23 起) |
template< class ElementType, class MappingType > mdspan( ElementType*, const MappingType& ) |
(7) | (C++23 起) |
template< class MappingType, class AccessorType > mdspan( const typename AccessorType::data_handle_type&, const MappingType&, |
(8) | (C++23 起) |
本节未完成 原因:解释 |
示例
本节未完成 原因:暂无示例 |