mrdocs::nullable_traits<Location>
nullable_traits specialization for Location.
Synopsis
Declared in <mrdocs/Metadata/Symbol/Location.hpp>
template<>
struct nullable_traits<Location>;
Description
Semantics
-
The “null” (sentinel) state is any Location whose ShortPath is empty.
-
Creating a null value produces a Location with all fields defaulted and ShortPath empty.
-
Making an existing value null clears ShortPath and resets the other fields to their defaults.
Rationale
-
This mirrors the old LocationEmptyPredicate, which treated an empty ShortPath as “empty/null.”
Static Member Functions
Name |
Created with MrDocs