[cfe-dev] Curious about libcxx __libcpp_nmstr design

Yaron Keren yaron.keren at gmail.com
Tue Oct 8 10:35:02 PDT 2013


I have couple of questions about __libcpp_nmstr class design.

It's a reference counted char* class optimized for size, right?

Why is this so important to optimize this class size to the absolute
minimum?

What is the purpose of the two unused_t? (I understand they are named
unused...)
Why they are assigned the string length if never used?

Yaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131008/5ef2a694/attachment.html>


More information about the cfe-dev mailing list