ddoc11479
-
Declaration
struct
S1
(T); -
Declaration
struct
S2
(T); -
Declaration
struct
S3
(T);
struct
S1
(T);
struct
S2
(T);
struct
S3
(T);
void
ddoc8271
();
Macro
Documentation comment on module
class
Foo
(T): Bar;
foo
void
bug6491a
(int a
= ddoc6491.c6491, string b
= core.cpuid.vendor);
test
Summary
Description1
Description2
Description3
Things to see also.
And more things.
class
StreamException
: object.Exception;
A base class for stream exceptions.
this(string
msg
, int foo
);
Construct a StreamException with given error message msg
.
string
|
the red blue green yellow. |
int
|
next parameter which is a much longer message spanning multiple lines. |
int
stars
;
stars
int
foo
(int a
, int b
);
foo
function - 1 example
assert(foo(1, 1) == 2);
bool
bar
();
bar
function - 1 example
// documented
assert(bar());
placeholder
void
doo
();
doo
function - no examples
int
add
(int a
, int b
);
add
function - 3 examples
assert(add(1, 1) == 2);
// documented
assert(add(3, 3) == 6);
assert(add(4, 4) == 8);
// documented
assert(add(5, 5) == 10);
assert(add(6, 6) == 12);
class
Foo
;
class Foo
Foo foo = new Foo;
class
SomeClass
;
some class - 1 example
SomeClass sc = new SomeClass;
class
Outer
;
Outer
- 1 example
Outer outer = new Outer;
class
Inner
;
Inner
Inner inner = new Inner;
void
foobar
();
foobar
- no examples
void
foo
(int x
);
func - 4 examples
foo(1);
foo(2);
foo(2);
foo(4);
void
fooImport
();
test
fooImport();
void
fooStaticImport
();
test
fooStaticImport();
void
fooPublicImport
();
test
fooPublicImport();
void
fooSelectiveImport
();
test
fooSelectiveImport();
void
fooRenamedImport
();
test
fooRenamedImport();
void
fooConditionalDecl1a
();
int x1a;
void
fooConditionalDecl1b
();
int x1b;
void
fooConditionalDecl3a
();
void
fooConditionalDecl3b
();
void
barConditionalDecl4a
();
int x4a;
void
barConditionalDecl4b
();
int x4b;
void
barConditionalDecl6a
();
int x6a;
void
barConditionalDecl6b
();
int x6b;
void
foo9474
();
Example
foo9474();
void
bar9474
();
doc
Example
bar9474();
struct
S9474
;
S9474 s;
int
autovar9474
;
int v = autovar9474;
auto
autofun9474
();
int n = autofun9474();
template
Template9474
()
alias Template9474!() T;
void
foo
();
Shouldn't link following unittest to here
void
fooNoDescription
();
fooNoDescription();
if (true) {fooNoDescription(); } /* comment */
void
foo9757
();
void bar9757
();
void baz9757
();
test for bugzilla 9757
foo9757(); bar9757();
bar9757(); foo9757();
auto
redBlackTree
(E)(E[] elems
...);
auto redBlackTree
(bool allowDuplicates, E)(E[] elems
...);
auto redBlackTree
(alias less, E)(E[] elems
...);
with template functions
auto rbt1 = redBlackTree(0, 1, 5, 7);
auto rbt2 = redBlackTree!string("hello", "world");
auto rbt3 = redBlackTree!true(0, 1, 5, 7, 5);
auto rbt4 = redBlackTree!"a > b"(0, 1, 5, 7);
void
foo
();
test
bool
balancedParens10519
(string, char, char);
auto s = "1 + (2 * (3 + 1 / 2)";
assert(!balancedParens10519(s, '(', ')'));
struct
S12097
;
void f12097
();
struct T12097
(T);
declaration
ddoc code 1
int a = 1;
ddoc code 2
int[] arr;
void
foo
();
method
void
fun14594a
()();
testA
fun14594a();
void
fun14594b
()();
void fun14594b
(T)(T);
testB
fun14594b(); fun14594b(1);
void
fun14594c
()();
void fun14594c
(T)(T);
testC
fun14594c(); fun14594c(1);
void
fun14594d
()();
void fun14594d
(T)(T);
testD
fun14594d();
fun14594d(1);
void
fun14594e
()();
testE
concatenated doc-comment fun14594e
doc-unittest fun14594e
fun14594e();
void
fun14594f
()();
void fun14594f
(T)(T);
testF
concatenated doc-comment fun14594f
doc-unittest fun14594f
fun14594f();
struct
Bug4107
(T);
struct doc
void
foo
(U)(U u
);
templated function doc
struct
Bug4107b
(T);
alias
This_Foo
= ddoc5446a.A_Foo;
alias
This_Foo_Alias
= ddoc5446a.A_Foo;
alias
This_Int
= int;
alias
This_Enum
= ddoc5446a.A_Enum;
deprecated alias
A_Enum_New
= ddoc5446b.A_Enum_New
;
struct
Bar
;
alias
Bar_A_Foo
= ddoc5446a.A_Foo;
alias
Bar_A_Foo_Alias
= ddoc5446a.A_Foo;
alias
Bar_A_Int
= int;
alias
Bar_This_Foo
= ddoc5446a.A_Foo;
alias
Bar_This_Foo_Alias
= ddoc5446a.A_Foo;
alias
Bar_This_Int
= int;
alias
Nested_Alias
= Nested;
alias
Fake_Nested
= .Nested;
struct
Nested
;
alias
Bar_Nested_Bar_Alias
= Bar;
alias
Bar_Alias
= .Bar;
struct
Bar
;
deprecated void ;
foo
()
enum
E1
: int;
enum
E2
: int;
enum
E3
: int;
enum
E4
: int;
enum
E5
: int;
void
foo
();
Some doc
alias
bar
= foo;
More doc
abstract class
C
;
asdf
abstract void
foo
();
Some doc
void
test
()(string[] args
) if (args
[$]);
template
Template
(T)
Template
Documentation (OK)
void
Function
(T)(T x
);
Function
Documentation (Not included at all by DDoc)
class
Class
(T);
Class
Documentation (OK)
struct
Struct
(T);
Struct
Documentation
union
Union
(T);
Union
Documentation
template
TemplateWithAnonEnum
(T)
Template documentation with anonymous enum
My module
// Computes the interval [x,y)
auto interval = computeInterval(x, y);
Closely related to std.datetime is core.time
,
and some of the time types used in std.datetime come from there - such as
, , and
.
core.time is publically imported into std.datetime, it isn't necessary
to import it separately.
void
foo
();
Sample:
a=1;
writeln(AddressOf!a);
Exclamation
QuestionMark
struct
MyStruct
(T);