MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / operator <

Method operator <

tests/catch.hpp:7794–7798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7792 return line == other.line && (file == other.file || std::strcmp(file, other.file) == 0);
7793 }
7794 bool SourceLineInfo::operator < ( SourceLineInfo const& other ) const noexcept {
7795 // We can assume that the same file will usually have the same pointer.
7796 // Thus, if the pointers are the same, there is no point in calling the strcmp
7797 return line < other.line || ( line == other.line && file != other.file && (std::strcmp(file, other.file) < 0));
7798 }
7799
7800 std::ostream& operator << ( std::ostream& os, SourceLineInfo const& info ) {
7801#ifndef __GNUG__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected