mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 19:28:58 +08:00
16 lines
260 B
C++
16 lines
260 B
C++
# include <biu.hpp>
|
|
|
|
int main()
|
|
{
|
|
using namespace biu::literals;
|
|
|
|
std::optional<int> a = 3;
|
|
std::cout << "{}\n"_f(a);
|
|
|
|
auto b = "hello"s;
|
|
auto c = "h(ell)o"_re;
|
|
std::smatch d;
|
|
assert(std::regex_match(b, d, c));
|
|
assert("{}"_f(d[1]) == "ell");
|
|
}
|