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 88357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:32:50+00:00 2026-05-10T22:32:50+00:00

C++0x will allow template to take an arbitrary number of arguments. What is the

  • 0

C++0x will allow template to take an arbitrary number of arguments. What is the best use of this feature other than implementing tuples ?

  • 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. 2026-05-10T22:32:51+00:00Added an answer on May 10, 2026 at 10:32 pm
    1. Type-safe printf
    2. Forwarding of arbitrary many constructor arguments in factory methods
    3. Having arbitrary base-classes allows for putting and removing useful policies.
    4. Initializing by moving heterogenous typed objects directly into a container by having a variadic template’d constructor.
    5. Having a literal operator that can calculate a value for a user defined literal (like ‘10110b’).

    Sample to 3:

    template<typename... T> struct flexible : T... { flexible(): T()... { } }; 

    Sample to 4:

    struct my_container { template<typename... T> my_container(T&&... t) { } }; my_container c = { a, b, c }; 

    Sample to 5:

    template<char... digits> int operator '' b() { return convert<digits...>::value; } 

    See this example code: here

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

Sidebar

Related Questions

Based on this question it appears that the default template for CheckStyle will allow
In the following piece of code, what function will allow the best optimization for
I have a seriers of pages that will feature contests where artists will use
As I understand, template aliases in C++0x will allow us to do the following:
I'm working on a feature that will allow a user to click onto a
is there anything built-in in Django templates that will allow me to compare two
My app will allow users to create a personalised list of events from a
I want to create a bookmarklet that will allow users to submit URLS from
The following program I'm creating will allow the user will input values to create
We are building an engine that will allow us to add new jar files

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.