std::sub_match::length - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::sub_match::length

From cppreference.com
< cpp‎ | regex‎ | sub match

difference_type length() const; |  |

### [edit] Parameters

(none)

### [edit] Return value

Returns the number of characters in the match, i.e. std::distance(first, second) if the match is valid, 0 otherwise.

### [edit] Complexity

Constant

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/regex/sub_match/length&oldid=41739"