Y
Hacker News
new
|
ask
|
show
|
jobs
by
wall_words
3756 days ago
std::tuple is essentially an "anonymous" struct -- there's no allocation involved
1 comments
kzhahou
3756 days ago
But the members inside don't have proper names.
link
masklinn
3755 days ago
That'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)
link