Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions cpptod.dd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Ddoc

$(COMMUNITY Programming in D for C++ Programmers,

<!--img src="images/cpp1.gif" border="0" align="right" alt="C++"-->
$(COMMENT img src="images/cpp1.gif" border="0" align="right" alt="C++")

$(P Every experienced C++ programmer accumulates a series of idioms and techniques
which become second nature. Sometimes, when learning a new language, those
Expand All @@ -28,7 +28,7 @@ $(UL
)


<hr><!-- -------------------------------------------- -->
<hr>$(COMMENT -------------------------------------------- )

$(H3 <a name="constructors">Defining constructors</a>)

Expand Down Expand Up @@ -56,7 +56,7 @@ class Foo

which reflects how they are used in D.

<hr><!-- -------------------------------------------- -->
<hr>$(COMMENT -------------------------------------------- )
$(H3 <a name="baseclass">Base class initialization</a>)

$(H4 The C++ Way)
Expand Down Expand Up @@ -125,7 +125,7 @@ class A
}
------

<hr><!-- -------------------------------------------- -->
<hr>$(COMMENT -------------------------------------------- )
$(H3 <a name="structcmp">Comparing structs</a>)

$(H4 The C++ Way)
Expand Down Expand Up @@ -188,7 +188,7 @@ if (x == y)
...
------

<hr><!-- -------------------------------------------- -->
<hr>$(COMMENT -------------------------------------------- )
$(H3 <a name="typedefs">Creating a new typedef'd type</a>)

$(H4 The C++ Way)
Expand Down Expand Up @@ -255,7 +255,7 @@ if (h != Handle.init)
default initializer can be supplied to $(REF Typedef, std,typecons)
as a value of the underlying type.

<hr><!-- -------------------------------------------- -->
<hr>$(COMMENT -------------------------------------------- )
$(H3 <a name="friends">Friends</a>)

$(H4 The C++ Way)
Expand Down Expand Up @@ -326,7 +326,7 @@ int abc(A p) { return p.a; }
The $(D private) attribute prevents other modules from
accessing the members.

<hr><!-- -------------------------------------------- -->
<hr>$(COMMENT -------------------------------------------- )
$(H3 <a name="operatoroverloading">Operator overloading</a>)

$(H4 The C++ Way)
Expand Down Expand Up @@ -375,7 +375,7 @@ struct A
error prone. Far less code needs to be written to accomplish
the same effect.)

<hr><!-- -------------------------------------------- -->
<hr>$(COMMENT -------------------------------------------- )
$(H3 <a name="usingdeclaration">Namespace using declarations</a>)

$(H4 The C++ Way)
Expand Down Expand Up @@ -410,7 +410,7 @@ alias x = foo.x;
declaration. Alias can be used to rename symbols, refer to
template members, refer to nested class types, etc.

<hr><!-- -------------------------------------------- -->
<hr>$(COMMENT -------------------------------------------- )
$(H3 <a name="raii">RAII (Resource Acquisition Is Initialization)</a>)

$(H4 The C++ Way)
Expand Down Expand Up @@ -475,7 +475,7 @@ mechanism that lets you run arbitrary statements whenever leaving the current
scope.)


<hr><!-- -------------------------------------------- -->
<hr>$(COMMENT -------------------------------------------- )
$(H3 <a name="properties">Properties</a>)

$(H4 The C++ Way)
Expand Down Expand Up @@ -542,7 +542,7 @@ int x = a.property;
It's also a way to have interface classes, which do not have
data fields, behave syntactically as if they did.

<hr><!-- -------------------------------------------- -->
<hr>$(COMMENT -------------------------------------------- )
$(H3 <a name="recursivetemplates">Recursive Templates</a>)

$(H4 The C++ Way)
Expand Down Expand Up @@ -593,7 +593,7 @@ void test()
}
------

<hr><!-- -------------------------------------------- -->
<hr>$(COMMENT -------------------------------------------- )

$(H3 <a name="metatemplates">Meta Templates</a>)

Expand Down Expand Up @@ -745,7 +745,7 @@ int main()
}
------

<hr><!-- -------------------------------------------- -->
<hr>$(COMMENT -------------------------------------------- )

$(H3 <a name="typetraits">Type Traits</a>)

Expand Down
Loading