On this page
deduction guides for std::basic_regex
Defined in header <regex> |
||
---|---|---|
|
(since C++17) |
This deduction guide is provided for std::basic_regex
to allow deduction from an iterator range.
Example
#include <regex>
#include <vector>
int main()
{
std::vector<char> v = {'a', 'b', 'c'};
std::basic_regex re(v.begin(), v.end()); // uses explicit deduction guide
}
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/regex/basic_regex/deduction_guides