deduction guides for std::basic_regex
From cppreference.com
< cpp | regex | basic regex
Defined in header <regex>
|
||
template< class ForwardIt > basic_regex( ForwardIt, ForwardIt, |
(since C++17) | |
This deduction guide is provided for std::basic_regex to allow deduction from an iterator range.
Example
Run this code
#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 }