Skip to main content

Practice ยท 3 of 3

The Array Bound Is a Free NTTP

Implement strLen (N - 1, excluding the terminator) and firstChar (s[0]) deducing the size from the array reference โ€” both constexpr, usable in static_assert.

Difficulty: advanced

Back to lesson: Practice: if constexpr and NTTPs