If T has a nested type executor_type, returns t.get_executor(). Otherwise returns ex.
T
executor_type
t.get_executor()
ex
static type get( const T & t, const Executor & ex = Executor());