DF
Size: a a a
DF
DF
CD
&f<a> == &f<b>?CD
АК
CD
AN
&f<a> == &f<b>?АК
CD
АК
format<"%d"> уже можно реализовать, разобранный до функтора.CD
format<"%d"> уже можно реализовать, разобранный до функтора.CD
ПК
АК
a - это NaN?const char* - сравнивать указатели или строки?АК
std::optional<date> extract_date(std::string_view s) noexcept {
using namespace ctre::literals;
if (auto [whole, year, month, day] = ctre::match<"(\\d{4})/(\\d{1,2})/(\\d{1,2})">(s); whole) {
return date{year, month, day};
} else {
return std::nullopt;
}
}AN
a - это NaN?const char* - сравнивать указатели или строки?CD
std::optional<date> extract_date(std::string_view s) noexcept {
using namespace ctre::literals;
if (auto [whole, year, month, day] = ctre::match<"(\\d{4})/(\\d{1,2})/(\\d{1,2})">(s); whole) {
return date{year, month, day};
} else {
return std::nullopt;
}
}D
CD
std::optional<date> extract_date(std::string_view s) noexcept {
using namespace ctre::literals;
if (auto [whole, year, month, day] = ctre::match<"(\\d{4})/(\\d{1,2})/(\\d{1,2})">(s); whole) {
return date{year, month, day};
} else {
return std::nullopt;
}
}АК