Overload that accepts an instance of T and delegates to the type-based version.
Implementation details:
Use <type_traits> (std::is_same) to implement the type check.
The logic should be header-only and compile with a standard C++11+ compiler.
No runtime exceptions; the functions should be constexpr-friendly and evaluable at compile time.
File layout and constraints:
Path: /app/include/show_classification.hpp
Include guards to prevent multiple inclusion.
No external dependencies beyond the standard library.
How this maps to the tests:
ShowClassification::show_classification_attributes() should return true.
ShowClassification::show_classification_attributes<decltype(CrossValidatorModel())>() or ShowClassification::show_classification_attributes() should return false.
Optional tips
Keep the interface minimal and well-documented inside the header.
If you provide a small CMake snippet for building a header-only library, place it under /app/ as a separate optional file, but the core requirement is the header-only implementation in /app/include/show_classification.hpp.
Acceptance criteria
The header defines CrossValidator, CrossValidatorModel, and ShowClassification with the specified API.
The tests (or any test harness referencing /app/include/show_classification.hpp) compile and the behavior matches the expectations above:
true for CrossValidator
false for CrossValidatorModel
The project remains self-contained under /app/ with no external build system changes required.