Skip to main content

Practice · 2 of 2

The const-Probe Concept

CHALLENGE
Difficulty: advanced+25 XP

Implement Sized as an ad-hoc requires requires clause probing c.size() **on a const reference** (with a std::convertible_to<std::size_t> result), and totalIfSized(c) returning the size — or -1 through the fallback for unsatisfying types.

Back to lesson: Practice: Concept Fundamentals