5.3.3/2
When applied to a class, the result [of sizeof] is the number of bytes in an object of that class, including any padding required for placing objects of that type in an array.
So yes, object size is a multiple of its alignment.
More Related Contents:
- Why isn’t sizeof for a struct equal to the sum of sizeof of each member?
- sizeof(struct) returns unexpected value
- Call an array from within an array of structs in c++
- i dont know this use of struct and pointers
- Why are C character literals ints instead of chars?
- C/C++ Struct vs Class
- What are the differences between struct and class in C++?
- Struct padding in C++
- What is the size of a pointer?
- How does this “size of array” template function work? [duplicate]
- What is the size of void?
- Iterating over a struct in C++
- Iterate through Struct and Class Members [duplicate]
- Is the memory allocated for struct members continguous? What if a struct member is an array?
- What is the default value for C++ class members
- Is it legal to index into a struct?
- Does not evaluating the expression to which sizeof is applied make it legal to dereference a null or invalid pointer inside sizeof in C++?
- Class vs Struct for data only?
- Casting double array to a struct of doubles
- sizeof class with int , function, virtual function in C++?
- Get attribute by name
- C++ Structure Initialization [duplicate]
- c++ sort with structs
- c++ sizeof(array) return twice the array’s declared length
- sizeof single struct member in C
- c++ data alignment /member order & inheritance
- c++ sizeof() of a class with functions
- What is the meaning of double curly braces initializing a C-struct?
- No == operator found while comparing structs in C++
- glPixelStorei(GL_UNPACK_ALIGNMENT, 1) Disadvantages?