Skip to content

Commit

Permalink
Merge pull request #378 from Kapps/fix11001
Browse files Browse the repository at this point in the history
Fix issue 11001 - Add documentation for __traits(getVirtualIndex).
  • Loading branch information
andralex committed Sep 10, 2013
2 parents 2b3d587 + 84934da commit 8a49be0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions traits.dd
Expand Up @@ -45,6 +45,7 @@ $(GNAME TraitsKeyword):
$(GBLINK getVirtualMethods)
$(GBLINK parent)
$(GBLINK classInstanceSize)
$(GBLINK getVirtualIndex)
$(GBLINK allMembers)
$(GBLINK derivedMembers)
$(GBLINK isSame)
Expand Down Expand Up @@ -538,6 +539,15 @@ $(H2 $(GNAME classInstanceSize))
polymorphic type.
)

$(H2 $(GNAME getVirtualIndex))

$(P Takes a single argument which must evaluate to a function.
The result is a $(CODE ptrdiff_t) containing the index
of that function within the vtable of the parent type.
If the function passed in is final and does not override
a virtual function, $(B -1) is returned instead.
)

$(H2 $(GNAME allMembers))

$(P Takes a single argument, which must evaluate to either
Expand Down

0 comments on commit 8a49be0

Please sign in to comment.