int2

Undocumented in source.
  1. struct int2
    pure nothrow @nogc
    static if(MMXSizedVectorsAreEmulated)
    struct int2 {}
  2. alias int2 = Vector!(int[2])

Members

Mixins

__anonymous
mixin VectorOps!(int2, int[2])
Undocumented in source.

Variables

array
int[2] array;
Undocumented in source.

Mixed In Members

From mixin VectorOps!(int2, int[2])

Count
enum Count;
Undocumented in source.
Base
alias Base = BaseType
Undocumented in source.
ptr
BaseType* ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
VectorType opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
VectorType opBinary(VectorType other)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(BaseType e)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(ArrayType v)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(VectorType other)
Undocumented in source. Be warned that the author may not have intended to support it.
this
this(ArrayType v)
Undocumented in source.
this
this(BaseType x)
Undocumented in source.
opCast
VecDest opCast()

We can't support implicit conversion but do support explicit casting. "Vector types of the same size can be implicitly converted among each other." Casting to another vector type is always just a raw copy.

opIndex
inout(BaseType) opIndex(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta