Struct NameAndLocationRef
Defined in File catch_amalgamated.hpp
Struct Documentation
-
struct NameAndLocationRef
This is a variant of
NameAndLocation
that does not own the name stringThis avoids extra allocations when trying to locate a tracker by its name and location, as long as we make sure that trackers only keep around the owning variant.
Public Functions
-
inline constexpr NameAndLocationRef(StringRef name_, SourceLineInfo location_)
Friends
-
inline friend bool operator==(NameAndLocation const &lhs, NameAndLocationRef const &rhs)
-
inline friend bool operator==(NameAndLocationRef const &lhs, NameAndLocation const &rhs)
-
inline constexpr NameAndLocationRef(StringRef name_, SourceLineInfo location_)