|
template<class charT , class traits > |
std::basic_istream< charT, traits > & | operator>> (std::basic_istream< charT, traits > &stream, regex &rhs) |
| Get the regex name from a stream. More...
|
|
template<class charT , class traits > |
std::basic_ostream< charT, traits > & | operator<< (std::basic_ostream< charT, traits > &stream, regex const &rhs) |
| Print the regex name to a stream. More...
|
|
POSIX extended regular expression.
Note that this extends the C++ std::regex type to provide the stream interface needed by the keyfile class. Not all methods are overloaded, so this is not safe enough to be generally usable. For example, it's possible to use non-overloaded assignment operators which will not update the stored string (which is required due to the C++ regex class not providing str() and compare() methods, while the Boost version does. This class provides these methods in order to be compatible with both the C++11 and Boost regex classes. Additionally, this class always uses extended regexes, which using non-overloaded methods would permit this expectation to be broken.