std::sub_match::length

From Cppreference

Jump to: navigation, search
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