std::integer_sequence

Download c++ eBook

Introduction

The class template std::integer_sequence<Type, Values...> represents a sequence of values of type Type where Type is one of the built-in integer types. These sequences are used when implementing class or function templates which benefit from positional access. The standard library also contains "factory" types which create ascending sequences of integer values just from the number of elements.

Related Examples

Stats

337 Contributors: 1
Wednesday, December 21, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook