I doodle zhings
Am Ying
zhis is a link if you wanna praise me
I should put more zhings in here, I was told i seem overly reserved wizh it being so empty

shorter zhan average 88x31

shorter zhan average by @mynotaurus


prolly not active here but
bsky.app/profile/liahzagarl.bsky.social

mynotaurus
@mynotaurus
8akesale
@8akesale asked:

The term layout refers to how the members of an object of class, struct or union type are arranged in memory. In some cases, the layout is well-defined by the language specification. But when a class or struct contains certain C++ language features such as virtual base classes, virtual functions, members with different access control, then the compiler is free to choose a layout. That layout may vary depending on what optimizations are being performed and in many cases the object might not even occupy a contiguous area of memory. For example, if a class has virtual functions, all the instances of that class might share a single virtual function table. Such types are very useful, but they also have limitations. Because the layout is undefined they cannot be passed to programs written in other languages, such as C, and because they might be non-contiguous they cannot be reliably copied with fast low-level functions such as memcopy, or serialized over a network.

to give you an idea my ask box currently has about. ten of zhese paragraphs in


8akesale
@8akesale

To enable compilers as well as C++ programs and metaprograms to reason about the suitability of any given type for operations that depend on a particular memory layout, C++14 introduced three categories of simple classes and structs: trivial, standard-layout, and POD or Plain Old Data. The Standard Library has the function templates is_trivial, is_standard_layout and is_pod that determine whether a given type belongs to a given category.


mynotaurus
@mynotaurus

baps you in zhe face wizh my tailfloof



You must log in to comment.