operator?:

Description

Signature

T operator?:<T>(
    bool condition,
    T ifTrue,
    T ifFalse);

vector<T, N> operator?:<T, int N>(
    vector<bool, N> condition,
    vector<T, N> ifTrue,
    vector<T, N> ifFalse);

matrix<T, N, M> operator?:<T, int N, int M>(
    matrix<bool, N, M> condition,
    matrix<T, N, M> ifTrue,
    matrix<T, N, M> ifFalse);

Generic Parameters

T

N : int

M : int

Parameters

condition : bool

ifTrue : T

ifFalse : T

condition : vector<bool, N>

ifTrue : vector<T, N>

ifFalse : vector<T, N>

condition : matrix<bool, N, M>

ifTrue : matrix<T, N, M>

ifFalse : matrix<T, N, M>