Skip to content

Commit ab3c4be

Browse files
authored
Create overview for UDL (#86)
Introduce the UDL abbreviation and describe the feature in the overview of the topic.
1 parent ce762bb commit ab3c4be

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sources/modules/functions/user-defined-literals.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Functions: user-defined literals {#udl}
1+
## Functions: user-defined literals (UDL) {#udl}
22

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

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

0 commit comments

Comments
 (0)