We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sized_match_t
1 parent 46b7135 commit 916b23eCopy full SHA for 916b23e
include/stringzilla/stringzilla.hpp
@@ -2309,6 +2309,9 @@ class basic_string_slice {
2309
size_type offset {};
2310
size_type length {};
2311
2312
+ sized_match_t() noexcept = default;
2313
+ sized_match_t(size_type o, size_type l) noexcept : offset(o), length(l) {}
2314
+
2315
operator bool() const noexcept { return offset != npos; }
2316
bool operator==(sized_match_t const &other) const noexcept {
2317
return offset == other.offset && length == other.length;
0 commit comments