centralized performance resources
This commit is contained in:
commit
50b15a1522
63 changed files with 328466 additions and 0 deletions
15
ocw/bit-hacks/structop.cc
Normal file
15
ocw/bit-hacks/structop.cc
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include <cstddef>
|
||||
#include <iostream>
|
||||
|
||||
struct S {
|
||||
char b;
|
||||
int i;
|
||||
};
|
||||
|
||||
int main() {
|
||||
S s;
|
||||
|
||||
std::cout << offsetof(S, i) << '\n';
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue