nw::find_first_effect_of

template<typename It>
It nw::find_first_effect_of(It begin, It end, nw::EffectType type, int subtype = -1)

Finds first effect of a given type.

Template Parameters:

It – A forward iterator

Parameters:
  • begin – Beginning of an range of effects

  • end – Beginning of an range of effects

  • type – An effect_type_* constant

  • subtype – An effect subtype

Returns:

It iterator to the first effect, or end