Skip to content

Commit

Permalink
Better documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodovico Giaretta authored and Lodovico Giaretta committed Jul 25, 2016
1 parent a44527a commit ebb74d5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions std/traits.d
Original file line number Diff line number Diff line change
Expand Up @@ -2020,9 +2020,16 @@ version (unittest)
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::://

/**
Determines whether $(D T) is a class nested inside another class
and that $(D T.outer) is the implicit reference to the outer class
(i.e. $(D outer) has not been used as a field or method name)
Determines whether `T` is a class nested inside another class
and that `T.outer` is the implicit reference to the outer class
(i.e. `outer` has not been used as a field or method name)
Params:
T = type to test
Returns:
`true` if `T` is a class nested inside another, with the conditions described above;
`false` otherwise
*/
template isInnerClass(T)
if (is(T == class))
Expand Down

0 comments on commit ebb74d5

Please sign in to comment.