1
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
2
// -----------------------------------------------------------------------------
3
- // Copyright 2000-2023 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
3
+ // Copyright 2000-2025 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4
4
// See the top-level COPYRIGHT file for details.
5
5
// SPDX-License-Identifier: Apache-2.0
6
6
// -----------------------------------------------------------------------------
7
7
/* ---------------------------------------------------------------------------*/
8
- /* ArrayViewCommon.h (C) 2000-2023 */
8
+ /* ArrayViewCommon.h (C) 2000-2025 */
9
9
/* */
10
10
/* Déclarations communes aux classes ArrayView, ConstArrayView et Span. */
11
11
/* ---------------------------------------------------------------------------*/
@@ -291,25 +291,26 @@ arccoreCheckLargeArraySize(size_t size)
291
291
/* ---------------------------------------------------------------------------*/
292
292
/* ---------------------------------------------------------------------------*/
293
293
294
- template <typename IntType> class ArraySizeChecker ;
294
+ template <typename IntType> class ArraySizeChecker ;
295
295
296
296
// ! Spécialisation pour tester la conversion en Int32
297
- template <>
297
+ template <>
298
298
class ArraySizeChecker <Int32>
299
299
{
300
300
public:
301
- template < typename SizeType> ARCCORE_HOST_DEVICE
302
- static Int32 check (SizeType size)
301
+
302
+ template < typename SizeType> ARCCORE_HOST_DEVICE static Int32 check (SizeType size)
303
303
{
304
304
return arccoreCheckArraySize (size);
305
305
}
306
306
};
307
307
308
308
// ! Spécialisation pour tester la conversion en Int64
309
- template <>
309
+ template <>
310
310
class ArraySizeChecker <Int64>
311
311
{
312
312
public:
313
+
313
314
static ARCCORE_HOST_DEVICE Int64 check (std::size_t size)
314
315
{
315
316
return arccoreCheckLargeArraySize (size);
@@ -319,9 +320,32 @@ class ArraySizeChecker<Int64>
319
320
/* ---------------------------------------------------------------------------*/
320
321
/* ---------------------------------------------------------------------------*/
321
322
322
- }
323
+ } // namespace Arccore
324
+
325
+ /* ---------------------------------------------------------------------------*/
326
+ /* ---------------------------------------------------------------------------*/
327
+
328
+ namespace Arcane ::impl
329
+ {
330
+ using Arccore::impl::arccoreCheckIsPositive;
331
+ using Arccore::impl::arccoreCheckIsValidInt64;
332
+ using Arccore::impl::arccoreCheckIsValidInteger;
333
+ using Arccore::impl::arccoreThrowNegativeSize;
334
+ using Arccore::impl::arccoreThrowTooBigInt64;
335
+ using Arccore::impl::arccoreThrowTooBigInteger;
336
+ using Arccore::impl::areEqual;
337
+ using Arccore::impl::areEqual2D;
338
+ using Arccore::impl::dumpArray;
339
+ using Arccore::impl::subViewInterval;
340
+ } // namespace Arcane::impl
341
+
342
+ namespace Arcane
343
+ {
344
+ using Arccore::arccoreCheckArraySize;
345
+ using Arccore::arccoreCheckLargeArraySize;
346
+ } // namespace Arcane
323
347
324
348
/* ---------------------------------------------------------------------------*/
325
349
/* ---------------------------------------------------------------------------*/
326
350
327
- #endif
351
+ #endif
0 commit comments