◆ mask()

template<typename T , typename U , typename Mask >
detail::masked_pointer<T,Mask> boost::simd::mask ( T *  ptr,
Mask const &  status,
U const &  def 

Marks a pointer as being masked.

Wraps a pointer, a condition and an optional base value to be passed to masked memory aware operation.

ptrValue to mask
statusCondition associated to the pointer
defOptional value to use when trying to acces ptr when status is false
A wrapped pointer and condition