Struct NameAndLocationRef

Struct Documentation

struct NameAndLocationRef

This is a variant of NameAndLocation that does not own the name string

This 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_)

Public Members

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)