|
1 | 1 | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
|
2 | 2 | //-----------------------------------------------------------------------------
|
3 |
| -// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) |
| 3 | +// Copyright 2000-2024 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 |
| -/* MemoryView.h (C) 2000-2023 */ |
| 8 | +/* MemoryView.h (C) 2000-2024 */ |
9 | 9 | /* */
|
10 | 10 | /* Vues constantes ou modifiables sur une zone mémoire. */
|
11 | 11 | /*---------------------------------------------------------------------------*/
|
@@ -61,9 +61,15 @@ class ARCANE_UTILS_EXPORT ConstMemoryView
|
61 | 61 | template <typename DataType> explicit constexpr ConstMemoryView(ConstArrayView<DataType> v)
|
62 | 62 | : ConstMemoryView(Span<const DataType>(v), 1)
|
63 | 63 | {}
|
| 64 | + template <typename DataType> explicit constexpr ConstMemoryView(ArrayView<DataType> v) |
| 65 | + : ConstMemoryView(Span<const DataType>(v), 1) |
| 66 | + {} |
64 | 67 | template <typename DataType> constexpr ConstMemoryView(ConstArrayView<DataType> v, Int32 nb_component)
|
65 | 68 | : ConstMemoryView(Span<const DataType>(v), nb_component)
|
66 | 69 | {}
|
| 70 | + template <typename DataType> constexpr ConstMemoryView(ArrayView<DataType> v, Int32 nb_component) |
| 71 | + : ConstMemoryView(Span<const DataType>(v), nb_component) |
| 72 | + {} |
67 | 73 | template <typename DataType> constexpr ConstMemoryView(Span<DataType> v, Int32 nb_component)
|
68 | 74 | : ConstMemoryView(Span<const DataType>(v), nb_component)
|
69 | 75 | {
|
|
0 commit comments