Gems/EMotionFX/Code/EMotionFX/Source/MotionManager.cpp
size_t MotionManager::FindMotionSetIndex(MotionSet* motionSet) const
    {
        const auto foundMotionSet = AZStd::find_if(begin(m_motionSets), end(m_motionSets), [motionSet](const MotionSet* ms)
        {
            return ms == motionSet;
        });
        return foundMotionSet != end(m_motionSets) ? AZStd::distance(begin(m_motionSets), foundMotionSet) : InvalidIndex;
    }
// find the motion set index and return it
find the motion set index and return it
find the motion set index and return it
size_t MotionManager::FindMotionSetIndex(MotionSet* motionSet) const
    {
        const auto foundMotionSet = AZStd::find_if(begin(m_motionSets), end(m_motionSets), [motionSet](const MotionSet* ms)
        {
            return ms == motionSet;
        });
        return foundMotionSet != end(m_motionSets) ? AZStd::distance(begin(m_motionSets), foundMotionSet) : InvalidIndex;
    }
size_t MotionManager :: FindMotionSetIndex ( MotionSet * motionSet ) const { const auto foundMotionSet = AZStd :: find_if ( begin ( m_motionSets ) , end ( m_motionSets ) , [ motionSet ] ( const MotionSet * ms ) { return ms == motionSet ; } ) ; return foundMotionSet != end ( m_motionSets ) ? AZStd :: distance ( begin ( m_motionSets ) , foundMotionSet ) : InvalidIndex ; }
find the motion set index and return it
find the motion set index and return it