This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Actually I was thinking that size() may have better fit into the "Optional sequence operations" table (i.e. only if O(1)). And so yes, if f positively needed the size information, c.size() would generate an error if C could not provide it (same rationale as for all other members of the optional sequence operations). The compile time error in this case would be a feature, not a bug.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |