Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/AnimGraph/NodeGroupWindow.cpp
int NodeGroupWindow::FindGroupIndexByWidget(QObject* widget) const
    {
        const auto foundGroup = AZStd::find_if(begin(m_widgetTable), end(m_widgetTable), [widget](const auto& tableEntry)
        {
            return tableEntry.m_widget == widget;
        });
        return foundGroup != end(m_widgetTable) ? foundGroup->m_groupIndex : MCore::InvalidIndexT<int>;
    }
// find the index for the given widget
find the index for the given widget
find the index for the given widget
int NodeGroupWindow::FindGroupIndexByWidget(QObject* widget) const
    {
        const auto foundGroup = AZStd::find_if(begin(m_widgetTable), end(m_widgetTable), [widget](const auto& tableEntry)
        {
            return tableEntry.m_widget == widget;
        });
        return foundGroup != end(m_widgetTable) ? foundGroup->m_groupIndex : MCore::InvalidIndexT<int>;
    }
int NodeGroupWindow :: FindGroupIndexByWidget ( QObject * widget ) const { const auto foundGroup = AZStd :: find_if ( begin ( m_widgetTable ) , end ( m_widgetTable ) , [ widget ] ( const auto & tableEntry ) { return tableEntry . m_widget == widget ; } ) ; return foundGroup != end ( m_widgetTable ) ? foundGroup -> m_groupIndex : MCore :: InvalidIndexT < int > ; }
find the index for the given widget
find the index for the given widget