What are user-defined literals?
Show answer and explanation
A user-defined literal maps a suffix such as _km to a literal operator that constructs a typed value at compile time or runtime. It can improve domain clarity, but suffixes beginning with an underscore are the safe namespace for user code.
A user-defined literal maps a suffix such as _km to a literal operator that constructs a typed value at compile time or runtime. It can improve domain clarity, but suffixes beginning with an underscore are the safe namespace for user code.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.