Moved functor decltype to stp class