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 起) |
|
本节内容尚不完整
原因:需要补充说明 |
示例
|
本节内容不完整
原因:缺少示例 |