Skip to content

Commit 8ad7f39

Browse files
committed
fix: remove assume valid in string header
1 parent b0399a7 commit 8ad7f39

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/plg/string.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,7 @@ namespace plg {
18901890
// starts_with
18911891

18921892
constexpr bool starts_with(self_view sv) const noexcept {
1893-
return self_view(typename self_view::assume_valid(), data(), size()).starts_with(sv);
1893+
return self_view(data(), size()).starts_with(sv);
18941894
}
18951895

18961896
constexpr bool starts_with(value_type c) const noexcept {
@@ -1904,7 +1904,7 @@ namespace plg {
19041904
// ends_with
19051905

19061906
constexpr bool ends_with(self_view sv) const noexcept {
1907-
return self_view(typename self_view::assume_valid(), data(), size()).ends_with(sv);
1907+
return self_view(data(), size()).ends_with(sv);
19081908
}
19091909

19101910
constexpr bool ends_with(value_type c) const noexcept {
@@ -1918,15 +1918,15 @@ namespace plg {
19181918
// contains
19191919

19201920
constexpr bool contains(self_view sv) const noexcept {
1921-
return self_view(typename self_view::assume_valid(), data(), size()).contains(sv);
1921+
return self_view(data(), size()).contains(sv);
19221922
}
19231923

19241924
constexpr bool contains(value_type c) const noexcept {
1925-
return self_view(typename self_view::assume_valid(), data(), size()).contains(c);
1925+
return self_view(data(), size()).contains(c);
19261926
}
19271927

19281928
constexpr bool contains(const value_type* PLUGIFY_NO_NULL s) const {
1929-
return self_view(typename self_view::assume_valid(), data(), size()).contains(s);
1929+
return self_view(data(), size()).contains(s);
19301930
}
19311931

19321932
[[nodiscard]] constexpr bool invariants() const;

0 commit comments

Comments
 (0)