79279051

Date: 2024-12-13 17:00:13
Score: 2.5
Natty:
Report link

Based on the discussion, there is no clear answer to whether skipping allocator destroy for trivially destructible types is allowed by the standard. However people tend to prefer the implementation of calling it regardless and let the compiler take care of potential optimization. I will mark this question as closed.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: cpp is hard