Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8465121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:57:06+00:00 2026-06-10T14:57:06+00:00

Could somebody point me to a complete listing of language type prefixes/suffixes? prefix examples:

  • 0

Could somebody point me to a complete listing of language type prefixes/suffixes?

prefix examples:

auto s1 (u8"I'm a UTF-8 string.");
auto s2 (u"This is a UTF-16 string.");
auto s3 (U"This is a UTF-32 string.");
auto s4 (R"(RAW \ STRING " )");
auto s5 (L"wide string");
//etc..
//*I've only seen prefixes like this for strings.

suffix examples:

auto n1 = 7.2f;
auto n2 = 7.2d;
auto n3 = 100L;
auto n4 = 10000LL;
//etc..

All my search attempts send me to “making your own user defined literals”.
Perhaps these instances have a specific name that I’m not aware of?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T14:57:07+00:00Added an answer on June 10, 2026 at 2:57 pm

    These are not “type” prefixes/suffixes, these are literal prefixes/suffixes, as they are applied on literals (string literals, number literals, …). They don’t have specific names, because they aren’t that interesting ☺.

    The built-in prefixes and suffixes in C++11 are:

    • Integers:

      • 12U, 12L, 12UL, 12LU, 12LL, 12ULL, 12LLU, 12u, 12uL, 12Lu, 12uLL, 12LLu, 12l, 12Ul, 12lU, 12ll, 12Ull, 12llU, 12ul, 12lu, 12ull, 12llu
    • Floating points:

      • 1.0f, 1.0F, 1.0l, 1.0L
    • Characters:

      • L'x', u'x', U'x'
    • Strings:

      • u8"xxx", u"xxx", U"xxx", L"xxx", R"(xxx)", u8R"(xxx)", uR"(xxx)", UR"(xxx)", LR"(xxx)"

    In particular, 1.0d is not a built-in C++11 suffix. Some compilers e.g. GCC may also have extensions for other number suffixes, see C floating point number notation.


    Relevant lexical grammar:

    (§2.14.2 Integer literals)

    unsigned-suffix: one of

    u U

    long-suffix: one of

    l L

    long-long-suffix: one of

    ll LL

    (§2.14.4 Floating literals)

    floating-suffix: one of

    f l F L

    (§2.14.3 Character literals)

    character-literal:

    ' c-char-sequence '
    u' c-char-sequence '
    U' c-char-sequence '
    L' c-char-sequence '

    and

    (§2.14.5 String literals)

    string-literal:

    encoding-prefixopt " s-char-sequenceopt "
    encoding-prefixopt R raw-string

    encoding-prefix:

    u8
    u
    U
    L

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could somebody point me in the right direction of how I could read a
Could somebody point out the necessary rights to do something like ALTER TABLE myTable
got a problem with dets:to_ets/2 Could somebody point me to an example online? Ive
could somebody please take a look at this http://jsfiddle.net/bloodygeese/EzkFR/1/ My aim is to on
Could somebody please explain what this notation is in javascript? What is function(d) doing?
Could somebody please point me in the right direction for learning how to do
Could somebody point me at or post an example of configuring a data source
Could somebody point me out for a sampling profiler for android apps? Searched entire
I'd be extremely grateful if somebody could help me, or point me in the
Could somebody point me to an example how to search for phrases with Lucene.net?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.