Home
last modified time | relevance | path

Searched refs:staticArray (Results 1 – 10 of 10) sorted by relevance

/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/root/
H A Darray.d807 pragma(inline, true) T[n] staticArray(T, size_t n)(auto ref T[n] array) in pragma()
815 enum a = [0, 1].staticArray;
859 enum a = [ 1, 2, 4, 3 ].staticArray;
864 enum b = [ 1.0, 2, 4, 3].staticArray;
891 enum a = [1, 2, 3, 4].staticArray;
894 enum expected = [3, 4].staticArray;
958 enum a = [1, 2, 3, 4].staticArray;
959 enum expected = [2, 4, 6, 8].staticArray;
1015 enum a = [1, 2, 3, 4].staticArray;
1077 enum a = [1, 2, 3].staticArray;
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/
H A Darray.d4795 auto a = input.staticArray!2;
4798 auto b = input.staticArray!(long[4]);
4837 auto staticArray = normalArray.staticArray!5; variable
4846 auto a = [1, 2].staticArray;
4851 2.iota.staticArray!2.checkStaticArray!int([0, 1]);
4852 2.iota.staticArray!(double[2]).checkStaticArray!double([0, 1]);
4853 2.iota.staticArray!(long[2]).checkStaticArray!long([0, 1]);
4860 2.iota.staticArray!1(copiedAmount);
4862 2.iota.staticArray!3(copiedAmount);
4867 auto staticArray(alias a)()
[all …]
H A Dsumtype.d1053 import std.array : staticArray;
1059 static arr1 = staticArray([Field()]);
1060 static arr2 = staticArray([Field()]);
2244 import std.array : staticArray;
2248 static ints = staticArray([1, 2, 3]);
2249 static chars = staticArray(['a', 'b', 'c']);
H A Dmeta.d1260 auto staticArray(T, size_t n)(Repeat!(n, T) elems) in staticArray() function
1266 auto a = staticArray!(long, 3)(3, 1, 4);
H A Dtypecons.d3662 import std.array : staticArray;
3672 Nullable!(Probe[1]) test = [Probe()].staticArray;
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/algorithm/
H A Dcomparison.d896 import std.array : staticArray;
908 auto result = cmp([F(1), F(2), F(3)].staticArray[], [F(1), F(2), F(3)].staticArray[]);
911 result = cmp([F(1), F(3), F(2)].staticArray[], [F(1), F(2), F(3)].staticArray[]);
913 result = cmp([F(1), F(2), F(3)].staticArray[], [F(1), F(2), F(3), F(4)].staticArray[]);
915 result = cmp([F(1), F(2), F(3)].staticArray[], [F(1), F(2)].staticArray[]);
H A Diteration.d1159 int[5] staticArray = [1, 2, 3, 4, 5];
1164 staticArray.each!((ref x) => x++);
1165 assert(staticArray == [2, 3, 4, 5, 6]);
1167 staticArray[].each!((ref x) => x++);
1168 assert(staticArray == [3, 4, 5, 6, 7]);
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dmeta.d1365 auto staticArray(T, size_t n)(Repeat!(n, T) elems) in staticArray() function
1371 auto a = staticArray!(long, 3)(3, 1, 4);
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/algorithm/
H A Diteration.d1054 int[5] staticArray = [1, 2, 3, 4, 5];
1059 staticArray.each!((ref x) => x++);
1060 assert(staticArray == [2, 3, 4, 5, 6]);
1062 staticArray[].each!((ref x) => x++);
1063 assert(staticArray == [3, 4, 5, 6, 7]);
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/
H A Dobject.d3722 else if (auto staticArray = cast(TypeInfo_StaticArray) element)
3723 element = staticArray.value;