MCPcopy Create free account
hub / github.com/Profactor/cv-plot / SourceLineInfo

Class SourceLineInfo

CvPlot/ext/catch2/inc/catch.hpp:479–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477 };
478
479 struct SourceLineInfo {
480
481 SourceLineInfo() = delete;
482 SourceLineInfo( char const* _file, std::size_t _line ) noexcept
483 : file( _file ),
484 line( _line )
485 {}
486
487 SourceLineInfo( SourceLineInfo const& other ) = default;
488 SourceLineInfo& operator = ( SourceLineInfo const& ) = default;
489 SourceLineInfo( SourceLineInfo&& ) noexcept = default;
490 SourceLineInfo& operator = ( SourceLineInfo&& ) noexcept = default;
491
492 bool empty() const noexcept { return file[0] == '\0'; }
493 bool operator == ( SourceLineInfo const& other ) const noexcept;
494 bool operator < ( SourceLineInfo const& other ) const noexcept;
495
496 char const* file;
497 std::size_t line;
498 };
499
500 std::ostream& operator << ( std::ostream& os, SourceLineInfo const& info );
501

Callers 2

registerTestMethodsFunction · 0.85
RunContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected