Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
throwaway2037
1y ago
0 comments
Save
Share
Can you instantiate an empty type? If yes, are all instances unique? Years ago, I was surprised to learn how C++ handles the (essentially) empty type (no data): A single byte to differentiate each instance.
0 comments
1 comments · 1 top-level
top
newest
oldest
kragen
1y ago
that's unit. the empty type is a type you cannot instantiate
j
/
k
navigate · click thread line to collapse