12 lines
302 B
C++
12 lines
302 B
C++
#include "common.hpp"
|
|
|
|
int main (int argc, char ** argv)
|
|
{
|
|
using svregex = boost::xpressive::basic_regex<std::string_view::const_iterator>;
|
|
svregex re = svregex::compile(PATTERN);
|
|
|
|
benchmark(argc, argv, [&] (std::string_view line) {
|
|
return bool(boost::xpressive::regex_search(line, re));
|
|
});
|
|
}
|