8#include <gtest/gtest.h>
10#include "arcane/utils/List.h"
11#include "arcane/utils/String.h"
12#include "arcane/utils/SmallArray.h"
13#include "arcane/utils/FixedArray.h"
15#ifdef ARCANE_HAS_CXX20
26 std::cout <<
"TEST_Collection Basic\n";
75 for(
Int64 i=0, n=view.size(); i<n; ++i )
92 constexpr int N = 934;
99 for(
Int32 i=0; i<200; ++i )
102 _checkSmallArrayValues(
buf1);
107 _checkSmallArrayValues(
buf1);
109 for(
Int32 i=0; i<200; ++i )
112 _checkSmallArrayValues(
buf1);
114 for(
int z=1; z<10; ++z ) {
146 for(
int z=1; z<10; ++z ) {
150 for(
Int32 i=0; i<n; ++i )
152 for(
Int32 i=0; i<n; ++i )
157 std::cout <<
"Test initializer_list 1\n";
158 SmallArray<Int32,20> buf = { 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25,
159 27, 29, 31, 33, 35, 37, 39, 41 };
162 for(
Int32 i=0; i<n; ++i )
166 std::cout <<
"Test initializer_list 2\n";
170 for(
Int32 i=0; i<n; ++i )
189#ifdef ARCANE_HAS_CXX20
190 static_assert(std::ranges::contiguous_range<FixedArray<Int32, 2>>);
200 static constexpr Int32 Size = 4;
208 for (
Int32 i = 0; i < Size; ++i) {
222 std::cout <<
"V[2]=" <<
array1[2] <<
"\n";
224 auto iter =
array1.begin();
#define ASSERT_FALSE(condition)
Vérifie que condition est faux.
#define ASSERT_TRUE(condition)
Vérifie que condition est vrai.
Tableau 1D de taille fixe.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Tableau 1D de données avec buffer pré-alloué sur la pile.
Allocateur avec buffer pré-alloué.
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-