Browse files

Fix issue 11001 - Add documentation for __traits(getVirtualIndex).

  • Loading branch information...
Kapps committed Sep 10, 2013
1 parent 2b3d587 commit 84934dadfc5a86a0b68a54a87c87c0d5e62ce5ff
Showing with 10 additions and 0 deletions.
  1. +10 −0 traits.dd
@@ -45,6 +45,7 @@ $(GNAME TraitsKeyword):
$(GBLINK getVirtualMethods)
$(GBLINK parent)
$(GBLINK classInstanceSize)
$(GBLINK getVirtualIndex)
$(GBLINK allMembers)
$(GBLINK derivedMembers)
$(GBLINK isSame)
@@ -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

0 comments on commit 84934da

Please sign in to comment.