Skip to content

Commit

Permalink
Improve alignForSize Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MetaLang committed Mar 24, 2015
1 parent f77b387 commit a75afe2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion std/typecons.d
Expand Up @@ -1573,9 +1573,17 @@ unittest

/**
Order the provided members to minimize size while preserving alignment.
Returns a declaration to be mixed in.
Alignment is not always optimal for 80-bit reals, nor for structs declared
as align(1).
Params:
E = A list of the types to be aligned, representing fields
of an aggregate such as a `struct` or `class`.
names = The names of the fields that are to be aligned.
Returns:
A string to be mixed in to an aggregate, such as a `struct` or `class`.
*/
string alignForSize(E...)(string[] names...)
{
Expand Down

0 comments on commit a75afe2

Please sign in to comment.