Namespaces
Variants
Views
Actions

std::match_results::match_results

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

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
explicit match_results( const Allocator& a = Allocator() );
</td>

<td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
match_results( const match_results& rhs );
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
match_results( match_results&& rhs );
</td>

<td > (3) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

1) Default-constructor. Constructs a match result with no established result state (ready() != true).
2) Copy-constructor. Constructs a match result with a copy of rhs.
3) Move-constructor. Constructs a match result with the contents of rhs using move semantics. rhs is in valid, but unspecified state after the call.

Parameters

a - allocator to use for all memory allocations of this container
rhs - another match_result to use as source to initialize the match_result with

Exceptions

1-2) (none)
3)
noexcept specification:  
noexcept