std::sub_match<BidirIt>::operatorstring_type,std::sub_match<BidirIt>::str (3) - Linux Manuals
std::sub_match<BidirIt>::operatorstring_type,std::sub_match<BidirIt>::str: std::sub_match<BidirIt>::operatorstring_type,std::sub_match<BidirIt>::str
Command to display std::sub_match<BidirIt>::operatorstring_type,std::sub_match<BidirIt>::str
manual in Linux: $ man 3 std::sub_match<BidirIt>::operatorstring_type,std::sub_match<BidirIt>::str
NAME
std::sub_match<BidirIt>::operatorstring_type,std::sub_match<BidirIt>::str - std::sub_match<BidirIt>::operatorstring_type,std::sub_match<BidirIt>::str
Synopsis
operator string_type() const; (1)
string_type str() const; (2)
Converts to an object of the underlying std::basic_string type.
The first version is an implicit conversion, the second one is explicit.
Parameters
(none)
Return value
Returns the matched character sequence as an object of the underlying std::basic_string type. If the matched member is false then the empty string is returned.
Complexity
Linear in the length of the underlying character sequence.
Example
// Run this code
#include <iostream>
#include <regex>
#include <string>
int main()
{
std::ssub_match sm;
std::string s = sm; // implicit conversion
std::cout << s.length() << '\n';
}
Output:
0
Pages related to std::sub_match<BidirIt>::operatorstring_type,std::sub_match<BidirIt>::str
- std::sub_match<BidirIt>::compare (3) - std::sub_match<BidirIt>::compare
- std::sub_match<BidirIt>::length (3) - std::sub_match<BidirIt>::length
- std::sub_match<BidirIt>::sub_match (3) - std::sub_match<BidirIt>::sub_match
- std::sub_match (3) - std::sub_match
- std::subtract_with_carry_engine (3) - std::subtract_with_carry_engine
- std::subtract_with_carry_engine<UIntType,w,s,r>::discard (3) - std::subtract_with_carry_engine<UIntType,w,s,r>::discard
- std::subtract_with_carry_engine<UIntType,w,s,r>::max (3) - std::subtract_with_carry_engine<UIntType,w,s,r>::max
- std::subtract_with_carry_engine<UIntType,w,s,r>::min (3) - std::subtract_with_carry_engine<UIntType,w,s,r>::min
- std::subtract_with_carry_engine<UIntType,w,s,r>::operator() (3) - std::subtract_with_carry_engine<UIntType,w,s,r>::operator()
- std::subtract_with_carry_engine<UIntType,w,s,r>::seed (3) - std::subtract_with_carry_engine<UIntType,w,s,r>::seed
- std::subtract_with_carry_engine<UIntType,w,s,r>::subtract_with_carry_engine (3) - std::subtract_with_carry_engine<UIntType,w,s,r>::subtract_with_carry_engine
- std::sample (3) - std::sample