]> git.tdb.fi Git - libs/core.git/blobdiff - source/strings/regex.cpp
Prefer more cache-efficient containers
[libs/core.git] / source / strings / regex.cpp
index 9167c6b8a9e6ae0f75fd52206bb96efe45a9424b..27361b038b168071cabd98aa45a37e37fb27d9cc 100644 (file)
@@ -1,6 +1,7 @@
 #include <limits>
 #include <list>
 #include <stack>
+#include <vector>
 #include "format.h"
 #include "regex.h"
 
@@ -157,7 +158,7 @@ Regex::Code Regex::compile(const string &expr, string::const_iterator &iter, uns
        }
        else
        {
-               list<Code> branches;
+               vector<Code> branches;
                for(auto i=iter;;)
                {
                        branches.push_back(compile(expr, i, group, true));