std::packaged_task<R(Args...)>:: ~packaged_task
      From cppreference.com
     
     
     
     
      
       <
       
        cpp
       
        |
       
        thread
       
        |
       
        packaged task
       
      
     
     
     
     
        
         C++
        
        
         
          
           
          
          
         
        
       
       
        
         Concurrency support library
        
        
         
          
           
            
          
          
          
         
        
       
       | 
 | 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
        
         
          std::packaged_task
         
        
        
         
          
           
            
          
          
          
         
        
       
       | Member functions | ||||
| 
                
                 
                  
                   packaged_task::~packaged_task
                  
                 
                
                | ||||
| Getting the result | ||||
| Execution | ||||
| Non-member functions | ||||
| Helper classes | ||||
| 
                
                 
                  
                   (until C++17)
                  
                 
                
                | ||||
| Deduction guides (C++17) | 
| 
           
            ~packaged_task
            
             (
            
            
             )
            
            
             ;
            
           
           | ||
Abandons the shared state and destroys the stored task object.
As with std::promise::~promise , if the shared state is abandoned before it was made ready, an std::future_error exception is stored with the error code std::future_errc::broken_promise ).
Parameters
(none)
Example
| This section is incomplete Reason: no example | 
      Retrieved from "
      
       https://en.cppreference.com/mwiki/index.php?title=cpp/thread/packaged_task/%7Epackaged_task&oldid=132862
      
      "