79160615

Date: 2024-11-05 20:47:52
Score: 1
Natty:
Report link

T in std::vector<T> can be accessed through value_type:

template<typename C, typename T = C::value_type, std::invocable<T> Visitor>
void template_ref_visit(C& c, Visitor& visit) { visit(c[0]); }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nil Admirari