22
22
/* ---------------------------------------------------------------------------*/
23
23
/* ---------------------------------------------------------------------------*/
24
24
25
- namespace Arcane
26
- {
27
- namespace detail
25
+ namespace Arcane ::impl
28
26
{
29
27
// Pour indiquer que Span<T>::view() retourne un ArrayView
30
28
// et Span<const T>::view() retourne un ConstArrayView.
@@ -62,9 +60,14 @@ namespace detail
62
60
63
61
using SpanType = Span<T>;
64
62
};
65
-
66
63
}
67
64
65
+ /* ---------------------------------------------------------------------------*/
66
+ /* ---------------------------------------------------------------------------*/
67
+
68
+ namespace Arcane
69
+ {
70
+
68
71
/* ---------------------------------------------------------------------------*/
69
72
/* ---------------------------------------------------------------------------*/
70
73
/* !
@@ -103,7 +106,7 @@ class SpanImpl
103
106
using const_reference = const ElementType&;
104
107
using iterator = ArrayIterator<pointer>;
105
108
using const_iterator = ArrayIterator<const_pointer>;
106
- using view_type = typename detail ::ViewTypeT<ElementType>::view_type;
109
+ using view_type = typename impl ::ViewTypeT<ElementType>::view_type;
107
110
using reverse_iterator = std::reverse_iterator<iterator>;
108
111
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
109
112
@@ -877,7 +880,7 @@ sampleSpan(Span<const DataType> values,Span<const Int32> indexes,Span<DataType>
877
880
* \brief Converti la vue en un tableau d'octets non modifiables.
878
881
*/
879
882
template <typename DataType, typename SizeType, SizeType Extent>
880
- inline typename detail ::SpanTypeFromSize<const std::byte, SizeType>::SpanType
883
+ inline typename impl ::SpanTypeFromSize<const std::byte, SizeType>::SpanType
881
884
asBytes (const SpanImpl<DataType,SizeType,Extent>& s)
882
885
{
883
886
return {reinterpret_cast <const std::byte*>(s.data ()), s.sizeBytes ()};
@@ -912,7 +915,7 @@ asBytes(const ConstArrayView<DataType>& s)
912
915
*/
913
916
template <typename DataType,typename SizeType,SizeType Extent,
914
917
typename std::enable_if_t <!std::is_const<DataType>::value, int > = 0 >
915
- inline typename detail ::SpanTypeFromSize<std::byte, SizeType>::SpanType
918
+ inline typename impl ::SpanTypeFromSize<std::byte, SizeType>::SpanType
916
919
asWritableBytes (const SpanImpl<DataType, SizeType, Extent>& s)
917
920
{
918
921
return {reinterpret_cast <std::byte*>(s.data ()), s.sizeBytes ()};
@@ -932,7 +935,7 @@ asWritableBytes(const ArrayView<DataType>& s)
932
935
/* ---------------------------------------------------------------------------*/
933
936
/* ---------------------------------------------------------------------------*/
934
937
935
- namespace detail
938
+ namespace impl
936
939
{
937
940
938
941
template <typename ByteType, typename DataType,Int64 Extent> inline Span<DataType>
@@ -972,7 +975,7 @@ asSmallSpanInternal(SmallSpan<ByteType,Extent> bytes)
972
975
template <typename DataType,Int64 Extent> inline Span<DataType>
973
976
asSpan (Span<std::byte,Extent> bytes)
974
977
{
975
- return detail ::asSpanInternal<std::byte,DataType,Extent>(bytes);
978
+ return impl ::asSpanInternal<std::byte,DataType,Extent>(bytes);
976
979
}
977
980
/* !
978
981
* \brief Converti un Span<std::byte> en un Span<DataType>.
@@ -981,7 +984,7 @@ asSpan(Span<std::byte,Extent> bytes)
981
984
template <typename DataType,Int64 Extent> inline Span<const DataType>
982
985
asSpan (Span<const std::byte,Extent> bytes)
983
986
{
984
- return detail ::asSpanInternal<const std::byte,const DataType,Extent>(bytes);
987
+ return impl ::asSpanInternal<const std::byte,const DataType,Extent>(bytes);
985
988
}
986
989
/* !
987
990
* \brief Converti un SmallSpan<std::byte> en un SmallSpan<DataType>.
@@ -990,7 +993,7 @@ asSpan(Span<const std::byte,Extent> bytes)
990
993
template <typename DataType,Int32 Extent> inline SmallSpan<DataType>
991
994
asSmallSpan (SmallSpan<std::byte,Extent> bytes)
992
995
{
993
- return detail ::asSmallSpanInternal<std::byte,DataType,Extent>(bytes);
996
+ return impl ::asSmallSpanInternal<std::byte,DataType,Extent>(bytes);
994
997
}
995
998
/* !
996
999
* \brief Converti un SmallSpan<const std::byte> en un SmallSpan<const DataType>.
@@ -999,7 +1002,7 @@ asSmallSpan(SmallSpan<std::byte,Extent> bytes)
999
1002
template <typename DataType,Int32 Extent> inline SmallSpan<const DataType>
1000
1003
asSmallSpan (SmallSpan<const std::byte,Extent> bytes)
1001
1004
{
1002
- return detail ::asSmallSpanInternal<const std::byte,const DataType,Extent>(bytes);
1005
+ return impl ::asSmallSpanInternal<const std::byte,const DataType,Extent>(bytes);
1003
1006
}
1004
1007
1005
1008
/* ---------------------------------------------------------------------------*/
0 commit comments