Namespaces
Variants
Views
Actions

std::sub_match::length

From cppreference.com
< cpp‎ | regex‎ | sub match
Revision as of 12:21, 2 November 2012 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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