fork download
  1. #include <vector>
  2.  
  3. struct S
  4. {
  5. std::vector<int> v;
  6. void method()
  7. {
  8. std::begin(v);
  9. }
  10.  
  11. auto begin() { using std::begin; return (begin)(v); }
  12. };
  13.  
  14. int main(){
  15. S s;
  16. s.method();
  17. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
Standard output is empty