From Jason Turner

[meta.help]

Diff to HTML by rtfpessoa

tmp/tmpv1nbjmwv/{from.md → to.md} RENAMED
@@ -1,14 +1,15 @@
1
  ### Helper classes <a id="meta.help">[[meta.help]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
- template <class T, T v>
6
- struct integral_constant {
7
  static constexpr T value = v;
 
8
  using value_type = T;
9
  using type = integral_constant<T, v>;
 
10
  constexpr operator value_type() const noexcept { return value; }
11
  constexpr value_type operator()() const noexcept { return value; }
12
  };
13
  }
14
  ```
 
1
  ### Helper classes <a id="meta.help">[[meta.help]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
+ template<class T, T v> struct integral_constant {
 
6
  static constexpr T value = v;
7
+
8
  using value_type = T;
9
  using type = integral_constant<T, v>;
10
+
11
  constexpr operator value_type() const noexcept { return value; }
12
  constexpr value_type operator()() const noexcept { return value; }
13
  };
14
  }
15
  ```