According to the C ++ project of February 11, 2011, Β§ 2.14.8, user types are integer literals, floating literals, string literals and character literals. Cannot execute function type literal.
A user literal is considered as a call to a literal operator or a literal operator pattern (13.5.8). To determine the form of this call for a given user literal L with ud-suffix X, literal-operator-id, whose literal suffix identifier is X, is looked up in context L using the rules for finding unqualified names (3.4.1). Let S be the set of ads found by this search. S should not be empty.
Whole numbers:
operator "" X (n ULL) operator "" X ("n") operator "" X <'c1', 'c2', ... 'ck'>()
Floating:
operator "" X (f L) operator "" X ("f") operator "" X <'c1', 'c2', ... 'ck'>()
String
operator "" X (str, len) operator "" X <'c1', 'c2', ... 'ck'>()
Character:
operator "" X (ch)
source share