Skip to content

Commit 2186a28

Browse files
committed
moving private functions on top
1 parent 91201f6 commit 2186a28

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

libcudacxx/include/cuda/std/__linalg/transposed.h

+20-20
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,26 @@ class layout_transpose
104104
private:
105105
using __nested_mapping_type = typename _Layout::template mapping<__detail::__transpose_extents_t<_Extents>>;
106106

107+
_LIBCUDACXX_HIDE_FROM_ABI static constexpr bool __required_span_size_noexcept()
108+
{
109+
return noexcept(__nested_mapping_.required_span_size());
110+
}
111+
112+
_LIBCUDACXX_HIDE_FROM_ABI static constexpr bool __is_nested_unique_noexcept()
113+
{
114+
return noexcept(__nested_mapping_.is_unique());
115+
}
116+
117+
_LIBCUDACXX_HIDE_FROM_ABI static constexpr bool __is_exhaustive_noexcept()
118+
{
119+
return noexcept(__nested_mapping_.is_exhaustive());
120+
}
121+
122+
_LIBCUDACXX_HIDE_FROM_ABI static constexpr bool __is_strided_noexcept()
123+
{
124+
return noexcept(__nested_mapping_.is_strided());
125+
}
126+
107127
public:
108128
using extents_type = _Extents;
109129
using index_type = typename extents_type::index_type;
@@ -194,26 +214,6 @@ class layout_transpose
194214
private:
195215
__nested_mapping_type __nested_mapping_;
196216
extents_type __extents_;
197-
198-
_LIBCUDACXX_HIDE_FROM_ABI static constexpr bool __required_span_size_noexcept()
199-
{
200-
return noexcept(__nested_mapping_.required_span_size());
201-
}
202-
203-
_LIBCUDACXX_HIDE_FROM_ABI static constexpr bool __is_nested_unique_noexcept()
204-
{
205-
return noexcept(__nested_mapping_.is_unique());
206-
}
207-
208-
_LIBCUDACXX_HIDE_FROM_ABI static constexpr bool __is_exhaustive_noexcept()
209-
{
210-
return noexcept(__nested_mapping_.is_exhaustive());
211-
}
212-
213-
_LIBCUDACXX_HIDE_FROM_ABI static constexpr bool __is_strided_noexcept()
214-
{
215-
return noexcept(__nested_mapping_.is_strided());
216-
}
217217
};
218218
};
219219

0 commit comments

Comments
 (0)