MCPcopy Create free account
hub / github.com/boostorg/json / compare_strings

Function compare_strings

include/boost/json/impl/conversion.hpp:309–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307#ifdef BOOST_DESCRIBE_CXX14
308
309constexpr
310bool
311compare_strings(char const* l, char const* r)
312{
313#if defined(_MSC_VER) && (_MSC_VER <= 1900) && !defined(__clang__)
314 return *l == *r && ( (*l == 0) | compare_strings(l + 1, r + 1) );
315#else
316 do
317 {
318 if( *l != *r )
319 return false;
320 if( *l == 0 )
321 return true;
322 ++l;
323 ++r;
324 } while(true);
325#endif
326}
327
328template< class L, class R >
329struct equal_member_names

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected