Created
          July 7, 2015 08:04 
        
      - 
      
- 
        Save jiunbae/1bcbba6009e5bb57e376 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | template <typename type, typename std_type = std::allocator<type>>std::list<type, std_type> operator+(std::list<type, std_type> * operand, std::list<type> * operanded) | |
| { | |
| std::list<type> * list = new std::list<type>; | |
| list.assign(operand.begin(), operand.end()); | |
| for_each(operanded.begin(), operanded.end(), [&list](type element)->void{ list.push_back(element); }); | |
| return list; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment