std::sub_match<BidirIt>:: length
      From cppreference.com
     
     
     
     
     
     
     
        
         C++
        
        
         
          
           
          
          
         
        
       
       
        
         Regular expressions library
        
        
         
          
           
            
          
          
          
         
        
       
       | Classes | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| Algorithms | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| Iterators | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| Exceptions | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| Traits | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| Constants | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| Regex Grammar | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | 
        
         
          std::sub_match
         
        
        
         
          
           
            
          
          
          
         
        
       
       | Member functions | ||||
| 
                
                 
                  
                   sub_match::length
                  
                 
                
                | ||||
| Non-member functions | ||||
| 
                
                 
                 
                 
                  
                   (until C++20)
                  
                 
                 
                  
                   (until C++20)
                  
                 
                 
                  
                   (until C++20)
                  
                 
                 
                  
                   (until C++20)
                  
                 
                 
                  
                   (until C++20)
                  
                 
                 
                  
                   (C++20)
                  
                 
                
                | ||||
| 
           
            difference_type length
            
             (
            
            
             )
            
            
             const
            
            
             ;
            
           
           | ||
Parameters
(none)
Return value
Returns the number of characters in the match, i.e. std:: distance ( first, second ) if the match is valid, 0 otherwise.
Complexity
Constant.
      Retrieved from "
      
       https://en.cppreference.com/mwiki/index.php?title=cpp/regex/sub_match/length&oldid=161063
      
      "