《深入浅出MFC》2/e= #0029 { #0030 ID_SEPARATOR, // status line indicator #0031 ID_INDICATOR_CAPS, #0032 ID_INDICATOR_NUM, #0033 ID_INDICATOR_SCRL, 第4章 Visual C++ - 整合性軟體開發環境 281 #0034 }; #0035 #0036 BEGIN #0130 ID_INDICATOR_EXT "EXT" #0131 ID_INDICATOR_CAPS "CAP" #0132 ID_INDICATOR_NUM "NUM" #0133 ID_INDICATOR_SCRL "SCRL" #0134 ID_INDICATOR_OVR "OVR" #0135 ID_INDICATOR_REC "REC" #0136 END #0137 #0138 STRINGTABLE DISCARDABLE #0139 BEGIN #0140 ID_FILE_NEW "Create a new document\nNew" #0141 ID_FILE_OPEN "Open an existing document\nOpen"0 码力 | 1009 页 | 11.08 MB | 1 年前3
hazard pointer synchronous reclamationConcurrency TS2 – Maged Michael • Maintain an indicator of automatic dependent retirement. • Clear indicator before invoking global cleanup. • Repeat as needed if the indicator is set. • Problem: Where is user code0 码力 | 31 页 | 856.38 KB | 6 月前3
Designing C++ Code Generator Guardrailswas the start of something much bigger. To avoid a few hierarchy issues that were impacting the placement of hundreds of -ls, we asked that shareable libraries be named differently. 38© 2018 Bloomberg0 码力 | 48 页 | 2.71 MB | 6 月前3
C++ Under the Hood- What did we learn today ? • Inheritance vs. Aggregation: • Memory layout, • v-table pointer placement. • The first shall be last, • C’tor, D’tor, Virtual Mechanism Mechanics: • Set up the v-table0 码力 | 168 页 | 13.55 MB | 6 月前3
Back To Basics: Rvalues and Move SemanticsTs&&... ts) { arr[index].~T(); new (&arr[index]) T(std::forward(ts)...); // placement new } // ... }; Code: https://coliru.stacked-crooked.com/a/6f85b23484f8ba46forwarding reference 0 码力 | 80 页 | 740.53 KB | 6 月前3
What Volatile Means (and Doesn't Mean)the cv-qualifiers constand volatileare closely related. Almost all of the rules regarding the placement and meaning of constalso apply to volatile. Understanding cv-qualifiers starts with understanding0 码力 | 32 页 | 901.80 KB | 6 月前3
The Beauty and Power of Primitive C++Flat::String Flat::SpanMessage descriptor User code access type initializer type placement new flat type a Span is a range of elementsType mapping • Initializer types: ordinary types to 0 码力 | 53 页 | 1.03 MB | 6 月前3
Things Happening in SG14stack, without initializing it right away, and having access to its constructor • Some sort of placement new on an uninitialized lambda, kind of like an optional90P2966 requests: memory allocation 0 码力 | 148 页 | 1009.97 KB | 6 月前3
Fast and small C++reduced by one byte 6 }; 7 8 struct sso { 9 char data[sizeof(normal)]; // MSB for long string mode indicator 10 }; 11 12 union { 13 sso small; 14 normal large; 15 } packed; 16 17 static_assert((sizeof(normal)0 码力 | 17 页 | 790.91 KB | 6 月前3
Back To Basics Functions118Functions Should Have One Job ● Because the function returns at most ‘1’ value, that’s an indicator that our function should only do one thing ○ e.g. In the Standard Template Library (STL) pop()0 码力 | 123 页 | 7.26 MB | 6 月前3
共 44 条
- 1
- 2
- 3
- 4
- 5













