MCPcopy Create free account
hub / github.com/arun11299/cpp-jwt / compare_length

Method compare_length

include/jwt/string_view.hpp:354–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352private: // private implementations
353
354 static constexpr int compare_length(size_type n1, size_type n2) noexcept
355 {
356 return static_cast<difference_type>(n1 - n2) > std::numeric_limits<int>::max()
357 ? std::numeric_limits<int>::max()
358 : static_cast<difference_type>(n1 - n2) < std::numeric_limits<int>::min()
359 ? std::numeric_limits<int>::min()
360 : static_cast<int>(n1 - n2)
361 ;
362 }
363
364private:
365 // This is what view is basically...

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected