mrdocs::nullable_traits<Location>

nullable_traits specialization for Location.

Synopsis

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

Description

is_null

Test if the location is null (empty ShortPath).

make_null

Reset a location to the null sentinel state.

null

Create a null location sentinel.

Created with MrDocs