5 ms·
Standard library doesn’t provide similar functionality but it’s trivial to implement a mixin template that would implement print or hash function for any type
by Neku42 7y ago
Standard library doesn’t provide similar functionality but it’s trivial to implement a mixin template that would implement print or hash function for any type
That being said standard formatting function can automatically print most types including user types. This eliminates necessity for automatic formatting implementation in majority of situations