mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 07:18:02 -06:00
13 lines
226 B
C++
Generated
13 lines
226 B
C++
Generated
#include <ctre.hpp>
|
|
|
|
static constexpr auto pattern = ctll::basic_fixed_string{ "h.*" };
|
|
|
|
constexpr auto match(std::string_view sv) noexcept {
|
|
return ctre::re<pattern>().match(sv);
|
|
}
|
|
|
|
void myfunc() {
|
|
match("hello");
|
|
}
|
|
|