What is the word pack in C++ draft?












2















What is the pack means in the C++ draft standard [basic]p3? Could you provide some concrete explanation, if cannot be explained in precise term?




An entity is a value, object, reference, structured binding, function, enumerator, type, class member, bit-field, template, template specialization, namespace, or pack.











share|improve this question




















  • 1





    Probably a parameter pack

    – Thomas Lang
    Nov 25 '18 at 19:52











  • why the downvote?

    – Andreas H.
    Nov 25 '18 at 19:54











  • Dunno, I didn't do it. Seems a valid question to me.

    – Thomas Lang
    Nov 25 '18 at 19:56











  • @ThomasLang: So it's restricted to only template?

    – ptr_NE
    Nov 25 '18 at 19:58






  • 3





    For future reference, the wp has an index. A word search there will usually bring you to the definition of things that pop up in the standard.

    – StoryTeller
    Nov 25 '18 at 20:01
















2















What is the pack means in the C++ draft standard [basic]p3? Could you provide some concrete explanation, if cannot be explained in precise term?




An entity is a value, object, reference, structured binding, function, enumerator, type, class member, bit-field, template, template specialization, namespace, or pack.











share|improve this question




















  • 1





    Probably a parameter pack

    – Thomas Lang
    Nov 25 '18 at 19:52











  • why the downvote?

    – Andreas H.
    Nov 25 '18 at 19:54











  • Dunno, I didn't do it. Seems a valid question to me.

    – Thomas Lang
    Nov 25 '18 at 19:56











  • @ThomasLang: So it's restricted to only template?

    – ptr_NE
    Nov 25 '18 at 19:58






  • 3





    For future reference, the wp has an index. A word search there will usually bring you to the definition of things that pop up in the standard.

    – StoryTeller
    Nov 25 '18 at 20:01














2












2








2








What is the pack means in the C++ draft standard [basic]p3? Could you provide some concrete explanation, if cannot be explained in precise term?




An entity is a value, object, reference, structured binding, function, enumerator, type, class member, bit-field, template, template specialization, namespace, or pack.











share|improve this question
















What is the pack means in the C++ draft standard [basic]p3? Could you provide some concrete explanation, if cannot be explained in precise term?




An entity is a value, object, reference, structured binding, function, enumerator, type, class member, bit-field, template, template specialization, namespace, or pack.








c++






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 25 '18 at 20:58









Shafik Yaghmour

126k23324537




126k23324537










asked Nov 25 '18 at 19:51









ptr_NEptr_NE

603324




603324








  • 1





    Probably a parameter pack

    – Thomas Lang
    Nov 25 '18 at 19:52











  • why the downvote?

    – Andreas H.
    Nov 25 '18 at 19:54











  • Dunno, I didn't do it. Seems a valid question to me.

    – Thomas Lang
    Nov 25 '18 at 19:56











  • @ThomasLang: So it's restricted to only template?

    – ptr_NE
    Nov 25 '18 at 19:58






  • 3





    For future reference, the wp has an index. A word search there will usually bring you to the definition of things that pop up in the standard.

    – StoryTeller
    Nov 25 '18 at 20:01














  • 1





    Probably a parameter pack

    – Thomas Lang
    Nov 25 '18 at 19:52











  • why the downvote?

    – Andreas H.
    Nov 25 '18 at 19:54











  • Dunno, I didn't do it. Seems a valid question to me.

    – Thomas Lang
    Nov 25 '18 at 19:56











  • @ThomasLang: So it's restricted to only template?

    – ptr_NE
    Nov 25 '18 at 19:58






  • 3





    For future reference, the wp has an index. A word search there will usually bring you to the definition of things that pop up in the standard.

    – StoryTeller
    Nov 25 '18 at 20:01








1




1





Probably a parameter pack

– Thomas Lang
Nov 25 '18 at 19:52





Probably a parameter pack

– Thomas Lang
Nov 25 '18 at 19:52













why the downvote?

– Andreas H.
Nov 25 '18 at 19:54





why the downvote?

– Andreas H.
Nov 25 '18 at 19:54













Dunno, I didn't do it. Seems a valid question to me.

– Thomas Lang
Nov 25 '18 at 19:56





Dunno, I didn't do it. Seems a valid question to me.

– Thomas Lang
Nov 25 '18 at 19:56













@ThomasLang: So it's restricted to only template?

– ptr_NE
Nov 25 '18 at 19:58





@ThomasLang: So it's restricted to only template?

– ptr_NE
Nov 25 '18 at 19:58




3




3





For future reference, the wp has an index. A word search there will usually bring you to the definition of things that pop up in the standard.

– StoryTeller
Nov 25 '18 at 20:01





For future reference, the wp has an index. A word search there will usually bring you to the definition of things that pop up in the standard.

– StoryTeller
Nov 25 '18 at 20:01












1 Answer
1






active

oldest

votes


















4














The standard also has an index and if we search for pack in the index we have the following entry for pack:




pack, [temp.variadic]




which leads to [temp.variadic]p4 which says:




A pack is a template parameter pack, a function parameter pack, or an init-capture pack.
The number of elements of a template parameter pack or a function parameter pack is the number of arguments provided for the parameter pack.
The number of elements of an init-capture pack is the number of elements in the pack expansion of its initializer.







share|improve this answer


























  • do you have any advice about reading the C++ draft, or is that just I think it's hard to understand? Or could you provide an approximation about how long it will take to understand it? Thanks for your answer and reading.

    – ptr_NE
    Nov 28 '18 at 23:15













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53471276%2fwhat-is-the-word-pack-in-c-draft%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














The standard also has an index and if we search for pack in the index we have the following entry for pack:




pack, [temp.variadic]




which leads to [temp.variadic]p4 which says:




A pack is a template parameter pack, a function parameter pack, or an init-capture pack.
The number of elements of a template parameter pack or a function parameter pack is the number of arguments provided for the parameter pack.
The number of elements of an init-capture pack is the number of elements in the pack expansion of its initializer.







share|improve this answer


























  • do you have any advice about reading the C++ draft, or is that just I think it's hard to understand? Or could you provide an approximation about how long it will take to understand it? Thanks for your answer and reading.

    – ptr_NE
    Nov 28 '18 at 23:15


















4














The standard also has an index and if we search for pack in the index we have the following entry for pack:




pack, [temp.variadic]




which leads to [temp.variadic]p4 which says:




A pack is a template parameter pack, a function parameter pack, or an init-capture pack.
The number of elements of a template parameter pack or a function parameter pack is the number of arguments provided for the parameter pack.
The number of elements of an init-capture pack is the number of elements in the pack expansion of its initializer.







share|improve this answer


























  • do you have any advice about reading the C++ draft, or is that just I think it's hard to understand? Or could you provide an approximation about how long it will take to understand it? Thanks for your answer and reading.

    – ptr_NE
    Nov 28 '18 at 23:15
















4












4








4







The standard also has an index and if we search for pack in the index we have the following entry for pack:




pack, [temp.variadic]




which leads to [temp.variadic]p4 which says:




A pack is a template parameter pack, a function parameter pack, or an init-capture pack.
The number of elements of a template parameter pack or a function parameter pack is the number of arguments provided for the parameter pack.
The number of elements of an init-capture pack is the number of elements in the pack expansion of its initializer.







share|improve this answer















The standard also has an index and if we search for pack in the index we have the following entry for pack:




pack, [temp.variadic]




which leads to [temp.variadic]p4 which says:




A pack is a template parameter pack, a function parameter pack, or an init-capture pack.
The number of elements of a template parameter pack or a function parameter pack is the number of arguments provided for the parameter pack.
The number of elements of an init-capture pack is the number of elements in the pack expansion of its initializer.








share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 25 '18 at 21:10

























answered Nov 25 '18 at 20:53









Shafik YaghmourShafik Yaghmour

126k23324537




126k23324537













  • do you have any advice about reading the C++ draft, or is that just I think it's hard to understand? Or could you provide an approximation about how long it will take to understand it? Thanks for your answer and reading.

    – ptr_NE
    Nov 28 '18 at 23:15





















  • do you have any advice about reading the C++ draft, or is that just I think it's hard to understand? Or could you provide an approximation about how long it will take to understand it? Thanks for your answer and reading.

    – ptr_NE
    Nov 28 '18 at 23:15



















do you have any advice about reading the C++ draft, or is that just I think it's hard to understand? Or could you provide an approximation about how long it will take to understand it? Thanks for your answer and reading.

– ptr_NE
Nov 28 '18 at 23:15







do you have any advice about reading the C++ draft, or is that just I think it's hard to understand? Or could you provide an approximation about how long it will take to understand it? Thanks for your answer and reading.

– ptr_NE
Nov 28 '18 at 23:15




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53471276%2fwhat-is-the-word-pack-in-c-draft%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

Calculate evaluation metrics using cross_val_predict sklearn

Insert data from modal to MySQL (multiple modal on website)