Talk:Operators in C and C++: Difference between revisions

Content deleted Content added
Caesar (talk | contribs)
Caesar (talk | contribs)
Alignment operators: answering myself
Line 317:
 
C11 defines an alignment operator <code>_Alignof</code>. I have read about something similar in C++11, although I can't find anyone that actually references the ISO/IEC 14882:2011 document. If anyone know the standards better than I, then please add information about it. [[User:Caesar|Caesar]] ([[User talk:Caesar|talk]]) 08:05, 7 February 2012 (UTC)
 
: Answering myself, the aligment operator of C++ is <code>alignof</code>, according to chapter 3.11, "Alignment", of ISO/IEC 14882:2011. That is also the name of the macro included in the C header <code>stdalign.h</code>. [[User:Caesar|Caesar]] ([[User talk:Caesar|talk]]) 22:19, 7 February 2012 (UTC)