From b887e0eb5572885c8ccf3b5df89ea494afa88590 Mon Sep 17 00:00:00 2001 From: Anthony Calandra Date: Mon, 24 Apr 2017 21:50:58 -0400 Subject: [PATCH] Add definition of my_integer_sequence. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index c88b0ae..7ee484d 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,11 @@ MyContainer c2; // OK MyContainer ### Declaring non-type template parameters with auto Following the deduction rules of `auto`, while respecting the non-type template parameter list of allowable types[\*], template arguments can be deduced from the types of its arguments: ```c++ +template +struct my_integer_sequence { + // Implementation here ... +}; + // Explicitly pass type `int` as template argument. auto seq = std::integer_sequence(); // Type is deduced to be `int`.