Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
deductiongu...basic_regex(3)  C++ Standard Libary deductiongu...basic_regex(3)

NAME
       deductionguidesforstd::basic_regex - deductionguidesforstd::basic_regex

Synopsis
	  Defined in header <regex>
	  template< class ForwardIt >

	  basic_regex( ForwardIt, ForwardIt,
		       std::regex_constants::syntax_option_type		     =
       (since C++17)
	  std::regex_constants::ECMAScript )

	  ->	      basic_regex<typename	     std::iterator_traits<For-
       wardIt>::value_type>;

	  This	deduction  guide is provided for std::basic_regex to allow de-
       duction 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	deduc-
       tion guide
	}

http://cppreference.com		  2024.06.10	  deductiongu...basic_regex(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=deductionguidesforstd::basic_regex&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help