I'm wondering why C++ standard decided to make regex_* functions (regex_match, regex_search, regex_match) non-member non-friend. They all need to access basic_regex's internals in order to perform the algorithms. Why don't they make them member functions of basic_regex? What are the benefits of free functions in this case?
Aucun commentaire:
Enregistrer un commentaire