4 ms·
std::tuple is essentially an "anonymous" struct -- there's no allocation involved
by wall_words 11y ago
std::tuple is essentially an "anonymous" struct -- there's no allocation involved
- deleted 11y ago[deleted]
- kzhahou 11y agoBut the members inside don't have proper names.
- masklinn 11y agoThat's rarely a problem where MRV makes sense. Though you could always fix it by using anonymous structs whose fields are both named and positional (similar to Python's namedtuples)
- deleted 11y ago[deleted]