fork download
  1. #include<set>
  2.  
  3. template<typename Return, typename T>
  4. T ReceiveFuncPtr (Return (T::*Method)(const int&))
  5. {
  6. T obj;
  7. (obj.*Method)(1);
  8. return obj;
  9. }
  10.  
  11. int main ()
  12. {
  13. ReceiveFuncPtr(&std::set<int>::emplace<const int&>);
  14. }
  15.  
Success #stdin #stdout 0s 3224KB
stdin
Standard input is empty
stdout
Standard output is empty