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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:15:00+00:00 2026-06-04T10:15:00+00:00

It seems to be a hardcoded template with 10 things, but there is also

  • 0

It seems to be a hardcoded template with 10 things, but there is also an implementation for a cons template class very similar to Typelist from Lokki. So is the boost tuple template just a wrapper around a Typelist/cons implementation? Or what is the gist of it?

  • 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-04T10:15:02+00:00Added an answer on June 4, 2026 at 10:15 am

    In C++03 (because otherwise we would be talking about std::tuple) there is no variadic template feature, therefore it is emulated with a sufficient number of parameters (*) with a specific default.

    You can get a hint of the actual implementation reading the Design decisions rationale:

    The end mark of the cons list (nil, null_type, …)

    Tuples are internally represented as cons lists:

    tuple<int, int>
    

    inherits from

    cons<int, cons<int, null_type> >
    

    null_type is the end mark of the list. Original proposition was nil,
    but the name is used in MacOS, and might have caused problems, so
    null_type was chosen instead. Other names considered were null_t and
    unit (the empty tuple type in SML).

    Note that null_type is the internal representation of an empty tuple:
    tuple<> inherits from null_type.

    (*) Usually in Boost the code is generated with the use of macros so that the upper limit is configurable.

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

Sidebar

Related Questions

I was using System.Windows.Forms.TabControl to list custom pages, but there seems be a Hardcoded
From reading the devise code and wiki it seems, there is no option to
Seems everyone recommends virtualenv for multiple python versions (on osx), but does it even
Seems like this should be obvious, but how do I send arrow key presses
Seems there's nothing to do… using the combo prototype/lowpro, no problems at all with
Seems like this should be simple, but powershell is winning another battle with me.
I am attempting to run a JUnit Test from a Java Class with: JUnitCore
By default, LibTIFF writes all error outputs to stderr. This seems to be hardcoded.
I am trying to override the DateTime template since I need custom class names
I'm new to Drupal but I've found my way around it pretty easily. There's

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.