mirror of
https://github.com/AnthonyCalandra/modern-cpp-features.git
synced 2025-12-17 01:54:36 +03:00
Update README.md (#79)
* Update README.md As per https://en.cppreference.com/w/cpp/utility/integer_sequence, `std::make_integer_sequence` doesn't accept any parameter pack template arguments
This commit is contained in:
@@ -1126,7 +1126,7 @@ std::chrono::duration_cast<std::chrono::minutes>(day).count(); // == 1440
|
||||
|
||||
### Compile-time integer sequences
|
||||
The class template `std::integer_sequence` represents a compile-time sequence of integers. There are a few helpers built on top:
|
||||
* `std::make_integer_sequence<T, N...>` - creates a sequence of `0, ..., N - 1` with type `T`.
|
||||
* `std::make_integer_sequence<T, N>` - creates a sequence of `0, ..., N - 1` with type `T`.
|
||||
* `std::index_sequence_for<T...>` - converts a template parameter pack into an integer sequence.
|
||||
|
||||
Convert an array into a tuple:
|
||||
|
||||
Reference in New Issue
Block a user