cpp / latest / regex / basic_regex / flags.html /

std::basic_regex<CharT,Traits>::flags

flag_type flags() const;
(since C++11)

Returns the regular expression syntax flags as set in the constructor or the last call to assign().

Parameters

(none).

Return value

Current regular expression syntax flags.

Exceptions

May throw implementation-defined exceptions.

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/regex/basic_regex/flags