mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
Merge pull request #3212 from nomad-software/issue_14079
Issue 14079 - Variable templates' documentation not generated.
This commit is contained in:
commit
c775917a34
1 changed files with 6 additions and 0 deletions
|
@ -5183,6 +5183,12 @@ unittest
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Detect whether type $(D T) is a narrow string.
|
||||
*
|
||||
* All arrays that use char, wchar, and their qualified versions are narrow
|
||||
* strings. (Those include string and wstring).
|
||||
*/
|
||||
enum bool isNarrowString(T) = (is(T : const char[]) || is(T : const wchar[])) && !isAggregateType!T && !isStaticArray!T;
|
||||
|
||||
unittest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue