Skip to content

Commit

Permalink
Create overview for UDL (#86)
Browse files Browse the repository at this point in the history
Introduce the UDL abbreviation and describe the feature in the overview of the topic.
  • Loading branch information
birbacher authored Jun 14, 2023
1 parent ce762bb commit ab3c4be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sources/modules/functions/user-defined-literals.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Functions: user-defined literals {#udl}
## Functions: user-defined literals (UDL) {#udl}

_Skeleton descriptions are typeset in italic text,_
_so please don't remove these descriptions when editing the topic._
Expand All @@ -8,6 +8,11 @@ _so please don't remove these descriptions when editing the topic._
_Provides a short natural language abstract of the module’s contents._
_Specifies the different levels of teaching._

Literals are a way to write values in the code, such as strings and numbers.
User-defined literals (UDL) allow to add a suffix to a string or number to change the meaning.
The suffix selects a function (an operator) that can alter the value and type of the literal.
The C++ library provides certain operators already and a user can add more by providing such operators.

-------------------------------------------------------------------------
Level Objectives
---------------- --------------------------------------------------------
Expand Down

0 comments on commit ab3c4be

Please sign in to comment.