Files
cppdraft_translate/cppdraft/intseq/general.md
2025-10-25 03:02:53 +03:00

24 lines
798 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[intseq.general]
# 21 Metaprogramming library [[meta]](./#meta)
## 21.2 Compile-time integer sequences [[intseq]](intseq#general)
### 21.2.1 General [intseq.general]
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/meta.tex#L21)
The library provides a class template that can represent an integer sequence[.](#1.sentence-1)
When used as an argument to a function template the template parameter pack defining the
sequence can be deduced and used in a pack expansion[.](#1.sentence-2)
[*Note [1](#note-1)*:
The index_sequence alias template is provided for the common case of
an integer sequence of type size_t; see also [[tuple.apply]](tuple.apply "22.4.6Calling a function with a tuple of arguments")[.](#1.sentence-3)
— *end note*]