MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / raise

Function raise

include/stringzilla/stringzilla.hpp:1514–1521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1512
1513#if !SZ_AVOID_STL
1514inline void raise(status_t status) noexcept(false) {
1515 switch (status) {
1516 case status_t::bad_alloc_k: throw std::bad_alloc();
1517 case status_t::invalid_utf8_k: throw std::invalid_argument("Invalid UTF-8 string");
1518 case status_t::contains_duplicates_k: throw std::invalid_argument("Array contains identical strings");
1519 default: break;
1520 }
1521}
1522
1523#endif
1524

Callers 6

initMethod · 0.85
basic_stringMethod · 0.85
basic_stringClass · 0.85
insertMethod · 0.85
argsortFunction · 0.85
intersectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…