Gems/EMotionFX/Code/EMotionFX/Source/MotionManager.cpp
size_t MotionManager::FindMotionSetIndexByName(const char* name, bool isTool) const
    {
        const auto foundMotionSet = AZStd::find_if(begin(m_motionSets), end(m_motionSets), [name, isTool](const MotionSet* motionSet)
        {
            return motionSet->GetIsOwnedByRuntime() != isTool &&
                AzFramework::StringFunc::Equal(motionSet->GetName(), name);
        });
        return foundMotionSet != end(m_motionSets) ? AZStd::distance(begin(m_motionSets), foundMotionSet) : InvalidIndex;
    }
// find the motion set index for the given motion
find the motion set index for the given motion
find the motion set index for the given motion
size_t MotionManager::FindMotionSetIndexByName(const char* name, bool isTool) const
    {
        const auto foundMotionSet = AZStd::find_if(begin(m_motionSets), end(m_motionSets), [name, isTool](const MotionSet* motionSet)
        {
            return motionSet->GetIsOwnedByRuntime() != isTool &&
                AzFramework::StringFunc::Equal(motionSet->GetName(), name);
        });
        return foundMotionSet != end(m_motionSets) ? AZStd::distance(begin(m_motionSets), foundMotionSet) : InvalidIndex;
    }
size_t MotionManager :: FindMotionSetIndexByName ( const char * name , bool isTool ) const { const auto foundMotionSet = AZStd :: find_if ( begin ( m_motionSets ) , end ( m_motionSets ) , [ name , isTool ] ( const MotionSet * motionSet ) { return motionSet -> GetIsOwnedByRuntime ( ) != isTool && AzFramework :: StringFunc :: Equal ( motionSet -> GetName ( ) , name ) ; } ) ; return foundMotionSet != end ( m_motionSets ) ? AZStd :: distance ( begin ( m_motionSets ) , foundMotionSet ) : InvalidIndex ; }
find the motion set index for the given motion
find the motion set index for the given motion