90 using ValueType =
typename T::value_type;
104 arrayInitial.push_back(ValueType{1});
105 arrayInitial.push_back(ValueType{2});
106 arrayInitial.push_back(ValueType{3});
108 T arrayCopy(arrayInitial);
119 T arrayMove(std::move(arrayInitial));
127 typename T::value_type data[3] = { 7, 8, 9 };
128 T arrayPtrCount(data, 3);
135 T arrayInitializer{8, 6, 7, 5, 3, 0, 9};
170 arrayAssignment = tArray;
181 U arrayMove(std::move(tArray));
190 arrayMoveAssign = std::move(tArray2);
411 for (
int reserveCount : {1, 2, 10, 100}) {
413 Array array1(reserveCount);
418 array2.reserve(reserveCount);
422 Array array3(reserveCount/2);
423 array3.reserve(reserveCount);
428 array4.push_back_n(reserveCount);
429 array4.reserve(2 * reserveCount);
430 array4.pop_back_n(reserveCount);
474 TestTSet_basic<int, true>(
reporter);
475 TestTSet_basic<int, false>(
reporter);
478 TestTSet_basic<TestClass, false>(
reporter);
487 test_reserve<TArray<int>>(
reporter);
488 test_reserve<STArray<1, int>>(
reporter);
489 test_reserve<STArray<2, int>>(
reporter);
490 test_reserve<STArray<16, int>>(
reporter);
492 test_reserve<TArray<TestClass>>(
reporter);
493 test_reserve<STArray<1, TestClass>>(
reporter);
494 test_reserve<STArray<2, TestClass>>(
reporter);
495 test_reserve<STArray<16, TestClass>>(
reporter);
497 test_construction<TArray<int>>(
reporter);
498 test_construction<TArray<double>>(
reporter);
499 test_construction<TArray<TestClass>>(
reporter);
500 test_construction<STArray<1, int>>(
reporter);
501 test_construction<STArray<5, char>>(
reporter);
502 test_construction<STArray<7, TestClass>>(
reporter);
503 test_construction<STArray<10, float>>(
reporter);
505 test_inner_push<TArray<int>>(
reporter);
506 test_inner_push<STArray<1, int>>(
reporter);
507 test_inner_push<STArray<99, int>>(
reporter);
508 test_inner_push<STArray<200, int>>(
reporter);
510 test_inner_emplace<TArray<EmplaceStruct>>(
reporter);
511 test_inner_emplace<STArray<1, EmplaceStruct>>(
reporter);
512 test_inner_emplace<STArray<99, EmplaceStruct>>(
reporter);
513 test_inner_emplace<STArray<200, EmplaceStruct>>(
reporter);