std::sub_match<BidirIt>::length

From cppreference.com
< cpp‎ | regex‎ | sub match
 
 
Regular expressions library
Classes
(哋它亢++11)
(哋它亢++11)
(哋它亢++11)
Algorithms
(哋它亢++11)
(哋它亢++11)
(哋它亢++11)
Iterators
(哋它亢++11)
(哋它亢++11)
Exceptions
(哋它亢++11)
Traits
(哋它亢++11)
Constants
(哋它亢++11)
(哋它亢++11)
(哋它亢++11)
Regex Grammar
 
std::sub_match
Member functions
sub_match::length
Non-member functions
(until 哋它亢++20)(until 哋它亢++20)(until 哋它亢++20)(until 哋它亢++20)(until 哋它亢++20)(哋它亢++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.